> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Marco Casavecchia Morganti > Sent: woensdag 12 maart 2008 13:43 > To: Hippo CMS development public mailinglist > Subject: Re: [HippoCMS-dev] Ordering Repeated elements. > > Jasha Joachimsthal wrote: > > Hi Marco, > > > > The repeater shows the items in the order as they are saved > on purpose. > > However you can add a preprocessing xsl [1] that orders the item > > elements on load. > > > > [1] http://www.hippocms.org/display/CMS/Preprocessing+templates > > Hello Jasha! :O) > > So you mean that i only need to provide a proper xsl and save > it into > "default.preview/configuration/editing/transformers/insertcontent.xsl" > to process all my templates with it?
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
