Jasha Joachimsthal wrote:
Hi Marco,
Sorry I gave you the wrong link. This is about new documents. The
correct one would be [2].
If you want to preprocess your document each time it's been loaded, you
have to add <preprocessing> in your types.xml.
So an example:
<types xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<resources default="page">
<resource label="types:cms.types.label.page" name="page"
i18n:attr="label">
<schema>cocoon://extensions/types/page/page.xsd</schema>
<layout>cocoon://extensions/types/mergedlayout/page/layout.xml</layout>
<bl>cocoon://extensions/types/page/bl.xml</bl>
<template>cocoon://extensions/types/page/page.xml</template>
<css>cocoon://extensions/types/common/common.css</css>
<i18n>cocoon://extensions/types/page/i18n</i18n>
<preprocessing>cocoon://extensions/types/page/preprocess.xsl</preprocess
ing>
</resource>
</resources>
</types>
[2] http://www.hippocms.org/display/CMS/03.+Developing+templates
Jasha
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
WOW!
Thanks a lot Jasha, this exactly what I need! :O)
--
By MCM.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist