Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi there,

We're building a custom view in our CMS where we list all templates, from this view we'd like to be able to go directly to managing the globals by clicking a link.

My (shortened) code for now is:
Code: Select all
<cms:admin_menuitems depth='1' childof='website' exclude='assets/dashboard.php, assets/onderdelen.php'>
   <cms:set my_action="edit_globals_<cms:show k_menu_name />" />
   <a href="<cms:show k_site_link/>couch/?o=<cms:show k_menu_name />&q=edit_globals/<cms:create_nonce my_action />/" >Link to globals</a>
</cms:admin_menuitems>

Attachments

Hi,

Global values are stored in hidden templates - these are the same as regular templates except that they are created automatically.

Once you figure out their (system-generated) names, working with them would be exactly the same as regular templates.
I think the following two threads should help you with doing that -
viewtopic.php?f=4&t=12400#p34613
viewtopic.php?f=5&t=11105&start=60#p33131

Hope this helps.
2 posts Page 1 of 1