Best Way to Set Up Complex Sorting?

Author Message

Alex Jones

Thursday 12 February 2004 8:12:09 am

Howdy all, I need some advice, which I hope someone can give. :)

The Challenge:
I need to provide the user (anonymous, not admin) the ability to sort the results of a search and/or fetch with the following possibilities:
<b>View</b> (Category)
- Fixed Blade
- Folding
- Other
<b>Sort By</b>
- Item Number (Low to High) - Text Field
- Item Number (High to Low) - Text Field
- Price (Low to High) - Price
- Price (High to Low) - Price
- Maker Name (Low to High) - Text Field
- Maker Name (High to Low) - Text Field

So, the user may choose to view all Folding Knives, sorted by Price (Low to High) or perhaps view all Fixed Blade Knives starting with the highest Item Number and progressing to the lowest Item Number. I would like to set it up as a couple of drop downs with an "Apply" button, though if I can set up all of the possible combinations as individual links, that would work just as well. Ideally I can provide this capability to the standard pages that use fetch, as well as search results.

So, how should I do this?

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bruce Morrison

Thursday 12 February 2004 2:41:29 pm

Not an eZ Publish solution but this may be of help
http://www.activeui.net/

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Alex Jones

Friday 13 February 2004 7:26:54 am

Thanks Bruce. That looks like a neat tool, but it doesn't quite fit my needs. As there could be hundreds of items to display I don't want to incur the load of pulling them all into a single page for display. Rather I would like to have eZ publish fetch the items and use its sorting capabilities to display them in the user-defined order and, should there be more than X amount of items include the google navigator template.

I appreciate the pointer though, that may very well come in handy for a different site that I need to revise!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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