by
tim » Sun Aug 30, 2015 10:36 pm
If you don't want to use
any views of a clonable template - that is you only want to use the data on other pages of the site - you can make the template non-executable. This will cause the page to return a 404 - page not found if you try to access the template or it's pages directly.
- Code: Select all
<cms:template title='my_template' clonable='1' executable='0' >
An alternative would be to just create the template as usual, but not use the page-view in any way. The pages will be there, but no one will be the wiser because you won't link to them or let on in any way (for instance through a sitemap) that they exist. If for some reason someone does access the page through a browser, it will be blank or show the list view, depending on how you code the template.
The code below would explicitly show a blank page for anything but the list view.
- Code: Select all
<cms:if k_is_list>
...Code for the list view...
<cms:else/>
</cms:if>