Forums / Setup & design / User side sorting
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
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