I'm trying to create an editable piece of content which will be visible on all pages using a particular template. The content should be editable by an end-user (Who doesn't have access to the developer sections) and should not have to be configured on every single page.
Similarly, is it possible to have a property set on a parent page cascade to child pages, or, alternatively, set a default for a property?
So what you want to do is create those global properties on say the Homepage node of you site. When you add those properties onto you template make sure you make the property Recursive.
What this does is tells umbraco to read back up the tree until it finds a value for the property.
Global Editable Content
Hi,
I'm trying to create an editable piece of content which will be visible on all pages using a particular template. The content should be editable by an end-user (Who doesn't have access to the developer sections) and should not have to be configured on every single page.
Similarly, is it possible to have a property set on a parent page cascade to child pages, or, alternatively, set a default for a property?
Thanks.
Hey Geoff
I understand what you are trying to do now :)
So what you want to do is create those global properties on say the Homepage node of you site. When you add those properties onto you template make sure you make the property Recursive.
What this does is tells umbraco to read back up the tree until it finds a value for the property.
I hope that this makes sense and is what you are after.
Thanks
Peter Gregory
Hi Peter,
The recursive attribute does not work with xsl:variable items. Is there an equivalent that can be used within xslt?
And I didn't realise until now that the solution to both these problems can be the same thing. Haha :)
Thanks,
Geoff
In XSLT you can approach recursion this way.
Hope thats what you were looking for?
Peter
So if my current code is:
How would I integrate that?
Actually, considering the object I'm trying to retrieve is a "Media Picker" I probably have to change it from string(albumFolder), correct?
is working on a reply...