Developer forum

Forum » Feature requests » RE: Inherit (item) page properties to subpages OR GlobalPlaceholderContent

RE: Inherit (item) page properties to subpages OR GlobalPlaceholderContent

Jacob Storgaard Jensen
Reply

Hi, I would like to have the ability to inherit each seperate page property that I add (via items) to the subpages...

Let's say I create a field with the type "Link to item", this will give me the data of the selected item available in my master template. This would make it possible for me to define a standard item to be shown in an "aside column" under my left navigation. When I then wan't to have something else in that column on one page, I can just add a new item/paragraph to the content placeholder (checking if the placeholder is empty, and only outputting the inherited item if placeholder is empty)...

OR could be great with at GlobalPlaceholderContent tag... Let say I <!--@Global:Placeholder.Content([NavigationTag:PlaceholderID])-->

Using the navigation tag would make it more dynamic when having multiple languages...

 


Replies

 
Mikkel Ricky
Reply

Do you want to inherit individual properties (fields) on the page property item or inherit the whole item?

This should definitely be doable, but we need to figure out how inheritance should work: does non-empty values override values from ancestor pages? How do we stop inheritance, i.e. if an ancestor page defines some value then it should be possible to cancel out that value on a subpage (without settings it to another non-empty value).

Let us know what you think.

Best regards,
Mikkel