Webshop

Webshop

Thursday 27 April 2006 3:30:51 am - 1 reply

Author Message

Stuart Fenton

Monday 01 May 2006 1:36:48 pm

You can specify sorting in the fetch statement used to fetch the objects to display. Add the ?sort_by? array to you fetch statement.

Have a look at:
http://ez.no/products/ez_publish/documentation/customization/tips_tricks/fetch_function_examples

Or if your using fetch_alias look at:
http://ez.no/products/ez_publish/documentation/reference/template_functions/miscellaneous/fetch_alias

You could link this to buttons on your screen to sort in the order you want.

As for random ordering their is a contribution called ?Shuffle? which will randomly sort an array.

You can find it here:
http://ez.no/community/contribs/template_plugins/extension_shuffle

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

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

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