Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I have attempted to do a server side include on my site that I have implemented with couch. In order to make it work in the first place, I had to make my page extensions .shtml. Now that I have changed them to .php, my includes <!--#include virtual="header.html" --> and <!--#include virtual="footer.html" --> are not working.

I could never get the include to work if I left my page as .html. Now with the .php extension its not working again.
:?
Can anyone help???
Hello and welcome.

Please try placing the SSI files within couch/snippets folder and then using cms:embed tag to incorporate them in your templates e.g.
Code: Select all
<cms:embed 'header.html' />

Do let me know if this solves the matter.
it worked!!! :D Thank you so much
The 'snippets' folder is within your 'couch' folder (or whatever you renamed it to).
Please take a look at http://www.couchcms.com/docs/tags-reference/embed.html for details about embedding.
4 posts Page 1 of 1