Home |_Section |_Subsection |_Subsection |_Section |_Subsection |_Sub-subsection |_Subsection
and so on.
At the "Section" level is a custom property called cssBackgroundColor and I need to be able to access from all child pages to set a css class on the body element.
Is there an easy way to have child pages inherit the field value from their parent for easy access through
<umbraco:itemfield="bodyText"runat="server"/>
Or is there an easy way to recursivly search for a parents field value?
Inheriting/Accessing parent field value
Hi everyone,
I have a website laid out like below
and so on.
At the "Section" level is a custom property called cssBackgroundColor and I need to be able to access from all child pages to set a css class on the body element.
Is there an easy way to have child pages inherit the field value from their parent for easy access through
Or is there an easy way to recursivly search for a parents field value?
You should be able to get away with this (using a recursive search):
Thanks Grant that does exactly what I needed it to do.
Unfortunatly that usefull little attribute appears to be missing form the wiki documentation
http://our.umbraco.org/wiki/reference/templates/umbracoitem-element/additional-attributes
is working on a reply...