Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Nested Master Pages View modes: 
User avatar
Member
Member
DahlinDev - 1/23/2013 10:45:47 PM
   
Nested Master Pages
From what I can tell there isn't the ability to have nested master pages in the Portal Engine.

Wondering what people think would be the best approach for this scenario.

I have a site which has a header and footer consistent across the entire site. This will be my master page.

I have a homepage which in the main section is completely different than the subpages. So currently that is it's own Page Template.

All my subpages have the same page layout with breadcrumbs at the top and a 3 column layout beneath it.

Is there a way to create a Page Template or Page Layout that inherits the master page, adds the breadcrumbs webpart to it and then uses a 3 column Page Layout?

The best I can think of is to create a Page Layout that all subpages use, but if I do that, I need to create a zone for where the breadcrumbs are and then on every Page Template using that Page Layout I will need to add the breadcrumb webpart. It doesn't feel right adding this webpart on ever Page Template, I should be able to add define it once in the Page Layout.

Maybe my question is, can you add webparts in Page Layouts?

Looking for advice.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/24/2013 1:26:44 AM
   
RE:Nested Master Pages
Create your master page as you normally would. Then for your 1 off page create a new page layout. Then on that 1 off go to the page template properties, choose the shared layout you created for the 1 off page and save it. Should work like a charm.

No you don't add webparts to layouts, you add webpart zones to layouts. You add the webparts to the page templates which utilize the page layouts.

User avatar
Member
Member
DahlinDev - 1/24/2013 8:12:04 AM
   
RE:Nested Master Pages
FroggEye, in this case I wouldn't be sharing the Header and Footer at all though between both templates would I? I would have two instances of the header and footer to manage then, am I right?

User avatar
Member
Member
DahlinDev - 1/24/2013 8:26:38 AM
   
RE:Nested Master Pages
Pretty embarrassing, but after connecting with FroggEye offline I realized all I need is my Master with the header and footer and then 2 page layouts. One for the Home page and one for the Sub Page. Seems so simple after I realized it.

User avatar
Member
Member
DahlinDev - 1/26/2013 4:04:53 PM
   
RE:Nested Master Pages
Ok, I thought I figured out my issue, but I hadn't. Breadcrumbs were still needed to be added on every page template using the SubPage Layout.

I ended up adding the breadcrumbs to the MasterPage and using the Visibility field with a macro to hide the webpart on the homepage.

User avatar
Kentico Consulting
Kentico Consulting
richards@kentico.com - 1/24/2013 7:33:26 AM
   
RE:Nested Master Pages
Hello,

FroggEye has got the right point, this is the best way you may do that. There is no need for some special web parts, you only need inherit parent layout. You can set this by going to page properties -> Template -> Inherit from parent.
This way the selected page will inherit the layout of the parent.

Best regards,
Richard Sustek