Hi Paolo,

Paolo Mottadelli wrote:
we have a 'page' template.
We want to extend it to create a 'x-page' one, that inherits all the
'page' properties and adds some others.
let's say:

'page' has:
_ title
_ body

'x-page' has:
_ title
_ body
_ date

We don't want to duplicate the code used to difine the 'page'
template; we want to extend it.
Is there any simple way to do that?

Pretty much all the definition files (schema, layout, business logic) have import and macro functionalities. This combination should allow you to achieve what you describe above.

Admittedly this part is not very well documented on the site, however using the schemas available [1] and a good XML editor it is not that difficult.

[1] http://www.hippocms.org/display/CMS/03.+Developing+templates#03.Developingtemplates-AvailableXMLSchemas

Kind regards

Niels

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to