Forums / Setup & design / User side sorting

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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