Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
As my first Couch project, I set up a simple 2-page site with 2 templates, index.php and board.php. As I got deeper into CouchCMS, I realized that using a single globals.php template containing the info for both pages was simpler and more efficient. The old templates were reworked to draw from globals.php and no longer have any editable regions, but they still appear in the admin panel.

I searched through the forums and couldn't find out how to solve this. How do I remove unneeded templates from the admin listing while still keeping them as pages on the website?

Tim
Hello Tim,

If I got it right, the problem is that now some of your templates do not have any editable-regions and yet they appear in the admin-panel. Correct?

See, although those templates do not contain any editable regions, they nevertheless are still managed by Couch (i.e. have the <?php require_once("couch/cms.php"); ?> and <?php COUCH::invoke(); ?> lines in them). So they will appear in the admin-panel - at least for the super-admin because she'd still need access e.g. in case it is decided to remove the templates completely from the system or make other future changes.

What you can do is, hide those templates from the other users of the admin-panel (i,e, normal 'admins' who typically are the site-owners in contrast to the super-admin who is the site-developer).

For this, you may use the 'hidden' parameter of <cms:template> tag and set it to '1' (please see http://docs.couchcms.com/tags-reference ... tml#hidden). By doing this, the super-admin will see the template with a strikethough line going across the name while the other admins will not see the template at all.

Hope this helps.
KK,

Thanks for the prompt reply and pointing me to the 'hidden' parameter.

Thanks,
Tim
3 posts Page 1 of 1