Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I am building a website and am using Couch as the CMS to allow editable regions for the client. All is well, but I have content that replicates across serveral pages, so this is one file that is included on each page where it appears using PHP.

I would like to allow the client the option to edit the file's contents but when I add this to Couch it doesn't affect the pages it is included in.

I have a feeling this is because it is in a sub-directory (includes/global/) rather than being in the root. So even though it is set to have editable regions and loads up in Couch, the changes do not seem to affect the website when made in the CMS.

Is there a way to edit these included pages, or would this need to be done on a 'per page' basis??
Hi,

You could do this -
a. Create a separate template e.g. global.php and define the editable regions within it.
This will allow the values placed within them to be editable.
b. Simply use the values in the other templates.

For step-by-step instructions on how to do this, please see http://www.couchcms.com/docs/tutorials/ ... -ends.html
The 'Global values' section explains the process in full detail.

Do let me know if you still happen to require some assistance.
2 posts Page 1 of 1