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

Regards,

Jasha Joachimsthal 

--------- 

Hippo 
Oosteinde 11 
1017 WT Amsterdam 
The Netherlands 
+31 (0)20 5224466 

[EMAIL PROTECTED] 
http://www.hippo.nl 



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Marco Casavecchia Morganti
> Sent: woensdag 12 maart 2008 12:49
> To: Hippo CMS development public mailinglist
> Subject: [HippoCMS-dev] Ordering Repeated elements.
> 
> Hello all,
> 
> I'm finally back with a question.. :O)
> 
> I would like to order repeated elements of a template.
> I have a document like this:
> <doc>
>       <repeated>
>               <item order="3" />
>               <item order="1" />
>               <item order="2" />
>       </repeated>
> </doc>
> 
> I would like that my layout.xml could be able to reorder the 
> repeated items before show the template to the user.
> 
> So the user will got a page where the items are in ascending order.
> <doc>
>       <repeated>
>               <item order="1" />
>               <item order="2" />
>               <item order="3" />
>       </repeated>
> </doc>
> 
> Is this possible?
> 
> Thanks a lot.
> --
> By MCM.
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to