Site structure
Version 5.x > Site structure > Master page hierachy View modes: 
User avatar
Member
Member
AKtoreee - 8/19/2010 4:20:36 AM
   
Master page hierachy
I have a question.

Is it possible do create a Master page which is based on a Master page?


User avatar
Member
Member
AKtoreee - 8/19/2010 4:22:45 AM
   
RE:Master page hierachy
its look so

--> Master Page
-->Master Page ( inherited from first Master Page, but have own webparts )
--> normal Page

User avatar
Member
Member
AKtoreee - 8/19/2010 4:25:14 AM
   
RE:Master page hierachy
I need it because i want on all Pages the same layout but on some pages another webpart on the same place.

I mean there is one Master Page with Layout for all pages, but different Master Pages
only for some web parts.


User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/19/2010 6:27:54 AM
   
RE:Master page hierachy
Actually, there is one "Master page" tab for the root of the content tree. However, if you want to have different page layouts, you can use the ability of the Portal GUI to control inheritance of page templates and content. Detailed info can be found in our tutorial at:
http://devnet.kentico.com/docs/devguide/visual_inheritance.htm
It is also bundled with your Kentico CMS installation.

Using these tutorials, you can create following site structure (for example):

Root
-> normal page 1
-> normal page 2 (inheriting template/content from "root")
....
-> different section 1 (not inheriting template/content from parent - "root")
-> -> different page 1.1 (inheriting from parent - "different section 1" page/menu item - but not "root")
-> -> different page 1.2 ...
....
-> different section 2
....

According to the tutorial, set "Do not inherit any content" on the Properties/Template tab for "different section" (You can choose the way how to control visual inheritance according to your needs, e.g. no inheritance or inheriting from simple or blank root master page...). "Different section" page will have layout different from "Root" or some "normal section" with "normal page(s)" as subpages, in case you want multiple layouts. All "section" pages will contain page placeholder. All subpages/subsections will be inheriting content from appropriate parent pages.

This way you can achieve multiple Master pages layout.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
AKtoreee - 8/19/2010 6:46:30 AM
   
RE:Master page hierachy
OK thanks I will try it

best regards

L. Hummer