User side sorting

Author Message

Stephen Martin

Thursday 20 March 2008 11:36:52 am

Hi,

I'd like to add some user side sorting features to a site I'm creating in ezp 4.0.

On a page I fetch a list of animals ( http://magnoliacattlecompany.com/Livestock ) and I'd like users to be able to sort this list base on animal attributes such as price, breed, gender etc. (You can see a comp of the sorting here: http://magnoliacattlecompany.com/design/livestock.html )

I've scoured the docs and forum and cannot find a suitable solution. Can someone point me in the right direction to accomplish this?

Thanks!

Stephen

Felix Laate

Wednesday 26 March 2008 6:18:46 am

Hi,

you could use view_parameters. Just add e.g. /(sortby)/price to the url, and then use $view_parameters.sortby in your fetch.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.