Design and CSS styles
Version 7.x > Design and CSS styles > Getting template to inherit on sub level pages View modes: 
User avatar
Member
Member
dbraun-pediatricweb - 5/14/2013 6:09:11 PM
   
Getting template to inherit on sub level pages
Hi, I have created two custom templates... not using the Master Page

How do I get the pre-existing subpages under each one of these template to inherit its respective template WITHOUT having to go through each subpage and manually click on Select Inherit Levels > Name of Template? There are about 100 subpages under each of the two templates.

User avatar
Kentico Legend
Kentico Legend
Accepted solutionAccepted solution
Brenden Kehren - 5/14/2013 10:24:26 PM
   
RE:Getting template to inherit on sub level pages
Do any of your sub pages use the same template? If so you can go to the Site Manager>Development>Page Templates and set inheritance at that level. If you've modified any of the inheritance on the page level, you may have to touch each of those pages to use the template settings.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 5/15/2013 1:25:44 AM
   
RE:Getting template to inherit on sub level pages
Hi,

It is as FroggEye says (thank you:))

Also if need you may change it manually in database table CMS_PageTemplate in column PageTemplateInheritPageLevels.

Kind regards,
Richard Sustek

User avatar
Member
Member
dbraun-pediatricweb - 5/15/2013 9:54:55 AM
   
RE:Getting template to inherit on sub level pages
Thanks!

User avatar
Member
Member
annaharris170-gmail - 5/29/2013 8:00:20 AM
   
RE:Getting template to inherit on sub level pages
How can I implement it if my sub pages are not using the same template?

User avatar
Kentico Support
Kentico Support
kentico_filipl - 5/29/2013 8:17:31 AM
   
RE:Getting template to inherit on sub level pages
Hi Anna,

In that case you can choose which levels, i.e. which subpages will use the selected template. It can be set in Site Manager -> Development -> Page templates -> <your template> -> Scopes -> Allow only for following levels.

Best regards,
Filip Ligac