Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Templates break Inheritance View modes: 
User avatar
Member
Member
lalves - 7/22/2010 11:46:32 AM
   
Templates break Inheritance
Hi,
Is there any way to perform a break inheritence templates when request a page?
I.E.
www.mydomain.com/mediaArea.aspx?inheritance=false

Best regards

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/2/2010 7:22:48 AM
   
RE:Templates break Inheritance
Hello,

It is not possible to do that via Query string. However you can use, for instance, 2 documents with just one page template (there would be 2 URLs instead of one with query string). Then you could break inheritance on the document level, which would lead to different content inheritance on each document. Hope this makes sense.

Best regards
Ondrej Vasil

User avatar
Member
Member
vin4.net-gmail - 7/11/2012 1:28:05 PM
   
RE:Templates break Inheritance
Hi,

I have a requirement where single template is for multiple pages with different content on each page.
According to my knowledge, we can use widget for changing content on different pages which are of same page template.

But I am trying to figure out, is there any option where there are two pages referring to single page template but
1. In first page, there will be only one web part zone.
2. In Second page, there will be three web part zones and one widget zone.
.
When I make any changes to a template, it will reflect in all pages which are referring to this page template which I dont want.

Please help me out to achieve this requirement.

Thank you.

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 7/13/2012 5:23:14 AM
   
RE:Templates break Inheritance
Hello.

What you described is principle of a page template. Template is something “in common.”

You could use either user widget, which is bound per document and is not shared, or clone a page template as ad-hoc template. Then it will become independent and will not influence other pages.

If you want to show/hide some webpartzone classes dynamically, according to current page, you can do it via custom macro called in the Visible property for the given webpartzone element. Within the code, you can evaluate some context value (like current document name) and decide whether to show it or not.

Best Regards,
Radek Macalik

User avatar
Member
Member
huber-soapcreative - 3/12/2013 2:03:23 AM
   
RE:Templates break Inheritance
Has there been any updates on this original request?
I'm in a very similar situation, and would require a site-wide solution.
Note: I'm using Kentico 7.0.23

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/12/2013 2:40:38 AM
   
RE:Templates break Inheritance
Hello.

What about the following solutions? Don't they work for you?

You could use either user widget, which is bound per document and is not shared, or clone a page template as ad-hoc template. Then it will become independent and will not influence other pages.

If you want to show/hide some webpartzone classes dynamically, according to current page, you can do it via custom macro called in the Visible property for the given webpartzone element. Within the code, you can evaluate some context value (like current document name) and decide whether to show it or not.

Best Regards,
Radek Macalik