Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Is there a way to manage and update and output certain reusable elements where needed.

Ie:
> Company name
> Phone numbers and other contact details like email addresses
> Strapline (in my case under the company name)
etc etc

Im sure all you can think of other useful uses for this. Ideally what id like is a way to manage all of these in the backend, these pieces of information are outputted throughout the site by calling a variable or whatever to do so.

Is this possible using Couch CMS?
Hello and welcome :)
Ideally what id like is a way to manage all of these in the backend, these pieces of information are outputted throughout the site by calling a variable or whatever to do so.

Is this possible using Couch CMS?

Certainly.
What you need to do is create a separate template (say named 'globals.php') and define editable regions for holding all the values you mentioned.

Once the data is input from the backend, it can be fetched anywhere on the site using the regular cms:show or cms:get_custom_field tag.

You can find a detailed example of putting this into use in our tutorial on the following page (please scroll a little to find the 'Global Values' section in it) -
http://www.couchcms.com/docs/tutorials/ ... -ends.html

Hope this helps. Do let us know if you have any doubts.

Thanks.
2 posts Page 1 of 1
cron