Site structure
Version 4.x > Site structure > Challenges with visual inheritence View modes: 
User avatar
Member
Member
Chris - 6/15/2009 8:07:47 AM
   
Challenges with visual inheritence
I have a situation where I'd like to set the hierarchy up like this:

Root <-- has a very basic layout (header/footer)
Home <-- Inherits from "Root" and has its own template/layout
Page 1
Page 4
Page 2
Page 3

I want Page 1, 2, 3 to share some layout, but something more defined that "Root" -- which makes me start to think I need to structure my layout like this:

Root <-- has a very basic layout (header/footer)
Home <-- Inherits from "Root" and has its own template/layout
Pages <-- a Page or a Folder that inherits from "Root"
Page 1
Page 4
Page 2
Page 3

So now Page 1, 2 and 3 can inherit from "Pages" and "Root" and use a template/layout that is contained within placeholder from "Pages," which is contain in "Root."

Then Page 4 is its own type of page and doesn't need the layout from "Pages" so it would inherit from *just* the "Root" and be able to define a full layout without the layout imposed by "Pages."

This works great!

But the problem is with the URLs. If the URL path for Pages is "/Pages," then all the pages under it get a URL (by default) of "/Pages/Page1" or "/Pages/Page2"

Really I want to never have any page use "/Pages" in the URL.

The workaround, of course, is to explicitly define the URL path for each of the child pages/documents. It works, but it is cumbersome. I wouldn't get our users to remember to manually touch-up the URL path every time they add a press release, for example.

Is there any other way to accomplish what I want so that creating new documents within that nested hierarchy automatically uses my preferred URL path instead of having to define it manually each time?

I feel like there should be a setting on "Pages" that says "don't use the URL path in child documents" or something?

I believe this limitation stems from the strict inheritance rule that only inherits "up" the content tree. If I could tell a page to inherit from arbitrary documents stored elsewhere (e.g. a set of templates in a separate folder), then I could keep the hierarchy "correct" without the extra "Pages" document and inherit from "Pages" stored elsewhere in the hierarchy (i.e. not above the current page).

We have been having great success with the system and have launched 7 sites since February on it and are finding it remarkable!

In fact, as we work more deeply with it, I am seeing this is one of the few limitations that we can't adjust ourselves. That is, how the fundamental visual inheritance works when attempting to do more complex document hierarchies and layouts. Unless I'm missing something?

Any thoughts anyone has would be greatly appreciated.

User avatar
Member
Member
Chris - 6/15/2009 8:10:00 AM
   
RE:Challenges with visual inheritence
I lost the formatting on my site structure examples so here is another attempt:

The first example should look like this

Root <-- has a very basic layout (header/footer)
...Home <-- Inherits from "Root" and has its own template/layout
...Page 1
......Page 4
...Page 2
...Page 3

And the second like this:

Root <-- has a very basic layout (header/footer)
...Home <-- Inherits from "Root" and has its own template/layout
...Pages <-- a Page or a Folder that inherits from "Root"
......Page 1
.........Page 4
......Page 2
......Page 3

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 6/15/2009 9:11:48 AM
   
RE:Challenges with visual inheritence
Hi,
you have already answered your question, however I think that also one other solution is possible. I think that you can create general template with design you want to use for your pages and then create ad-hoc templates from this template, the problem is reusability of this solution.
Best Regards,
Zbysek Nemec.

User avatar
Member
Member
Chris - 6/15/2009 8:36:58 PM
   
RE:Challenges with visual inheritence
Are there any plans in v5 to address this limitation? For example, the ability to inherit from an arbitrary hierarchy?

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 6/22/2009 7:18:19 AM
   
RE:Challenges with visual inheritence
Hi Chris,
unfortunately this requirement was reject, maybe we will solve this kind of issue in future versions in any other way.
Best Regards,
Zbysek Nemec.