Site structure
Version 3.x > Site structure > Share Content between two Top level pages View modes: 
User avatar
Member
Member
ken.walpurgis-atalasoft - 12/6/2008 6:12:39 PM
   
Share Content between two Top level pages
We have a site that "shares" content between pages that are on the same level of the site.

Imagine a page with two columns (20%/80% widths). The left hand side text is the same between the two pages but the main column(80%) is different. I would like to avoid having two different web parts on each page with editable text.

I tried adding the content to a page then creating a sub-page underneath it and that actually works(i get the left content on the sub page), but this prevents me from using the tabmenu because the page no longer at the top level of the site.

any thoughts would be appreciated.

thanks.

User avatar
Member
Member
ken.walpurgis-atalasoft - 12/6/2008 8:57:31 PM
   
RE:Share Content between two Top level pages
I reread this post and realize i am not being very clear. I guess i am wrestling with the difference between the Masterpage, the Page Template, and the Page Layout.

My understanding(please correct me), is that i have a page template which contains the layout of the page separated in zones(stricly html). But when i add web parts(in the design tab), that becomes a part of the template. If any other page-items use the template they will get the new web parts that were added as well.
But if i change text in the "Page" tab that will not be shared between the pages that share the template.

I would like to put an editable web part on a template but have the contents shared between the pages that share the page template.

I've read through the Developers Guide for the Visual Inheritance, Page Template and Masterpage topics,but am still confused. Is there another reference i might use?



User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 12/8/2008 3:18:34 PM
   
RE:Share Content between two Top level pages
Hello Ken,

your intended solution is quite clear, and the visual inheritance setup (with sub-pages) is correct. From your description I think you understand the page templates well.

On the other hand, it is unfortunatelly not possible to have editable webpart with its content shared between the pages of the same page template.

The mentioned documentation should be quite enough to understand the principles, but there could appear something which is not explicitly described. Some more information could be found at DevNet portal, mostly in the article at http://devnet.kentico.com/Knowledge-Base/Design-and-css/Page-templates.aspx regarding PageTemplates.

However, I'm not sure how exacly do you want the tabmenu navigation control to appear/behave. Could you please describe it in more details? In which page's template is the tabmenu placed? Have you tried placing the tabmenu navigation webpart/control in the page that is parent of the sub-pages? You could setup the tabmenu's path to obtain the sub-page items(names) only, or maybe use the content filtering - e.g. some WHERE condition.

Regards,
Zdenek Cetkovsky, Kentico

User avatar
Member
Member
ken.walpurgis-atalasoft - 12/8/2008 5:29:15 PM
   
RE:Share Content between two Top level pages
Thank you for the info. I believe i am all set. I will play around with the tab menu configuration.

Thanks again.