Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
I have a site page which pulls in all of its CMS content by using get_custom_field and clonable template enumeration. It is not itself a template and has no declaration as such. It does however, of course, pull in the CMS at the top and INVOKEs at the bottom.

Problem is, it's showing up in the admin zone as:

index.php

And of course, inside it says:

"No Editable Regions defined"

How can I stop this from showing up in admin?

TY
Hi,

Simplest way would be to set hidden='1' in the template's <cms:template> tag. That would hide that template for the admins (but not the super-admin).

If you wish to hide it for everybody, you may try tweaking the code example provided in this thread - viewtopic.php?f=8&t=11547

Let me know if you happen to need help with it.
Thank you. However there is no <cms:template /> tag anywhere in the page's code at all - it's not a template.

Or does Couch automatically assume it is, despite the lack of that tag?
That's ok - adding the two PHP lines you mentioned is what makes Couch treat a file as template.
You may now add a <cms:template> block with the mentioned parameter (not forgetting to visit the template on the front-end as super-admin for the change to be picked up).
4 posts Page 1 of 1
cron