Share » Forums » Developer » How to sort a fetched list ( client...

How to sort a fetched list ( client side )

How to sort a fetched list ( client side )

Tuesday 14 September 2010 2:42:06 am - 1 reply

Author Message

Matthieu Sévère

Tuesday 14 September 2010 2:48:06 am

Hi !

You can use view_parameters to control to sort parameters of your fetch.

For example you can have a link that sort by date :

<a href={'Your/URLAlias/(sort)/date'|ezurl}>Sort By date</a>

By clicking on this link you will define a view_parameters sort with the value date

You can then retrieve this value in a template like this :

{def $sort_method = $view_parameters.sort}

--
eZ certified developer: http://ez.no/certification/verify/346216

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu