Page template scopes define where a page template can be used. Important - template scopes are not a security feature! They only provide a way how to simplify the user experience by not offering too many page templates to the users!
This means that you can limit which page templates will be offered to the users in the page template catalog in a certain location. But when the user creates a page there, they can move it to another location, even to such which is not allowed by the template scope.
Template scopes can be defined on the Scopes tab when editing a page template. You have the following two basic options on the Scopes tab:
• | Template can be used on all pages: the use of the page template is not limited and it can be used anywhere |
• | Template can be used only within following scopes: if selected, the page can be used based on the defined template scopes |
If you choose the second of the options mentioned above, UI controls for managing the scopes will be displayed below the line.
Based on the site selected in the Site drop-down, you can display either site-related scopes or global scopes. Site-related scopes are applied only on the selected site, while the (global scopes) option indicates that the scopes are valid on all sites in the system.
Using the New template scope () link, you can create new template scopes. Listed scopes can be Edited () or Deleted ().
When creating a new scope or editing an existing one, you can specify the following details, which define where the page template can be used:
• | Starting path: path in the content tree where the page template can be used; the page template can not be used outside this path |
• | Document type: the page template can be used only for documents of the specified type |
• | Culture: the page template can be used only in the specified culture |
• | Levels: the page can either be used in all levels or only in the selected levels in the content tree |
Page url: http://devnet.kentico.com/docs/devguide/index.html?page_template_scopes.htm