[opencms-dev] How to inherit properties of a parent folder?

Florian Hopf hopf at synyx.de
Mon Jan 7 09:51:13 CET 2008


Hi,

Marc Schlegel wrote:
> While devolping my first template I got stuck with the headimage. I 
> would like to set the property for the headimage in a folders 
> properties. All pages within this folder should use this property for 
> displaying the headimage but they also should be able to overwrite this 
> (actually I would like to have the TemplateOne behaviour ^^)
>
>   
This should work without doing anything. When reading the property
either set the flag search to true in CmsObject#readPropertyObject or if
you use the taglib use <cms:property file="search" name="xxx"/>

HTH
Flo




More information about the opencms-dev mailing list