Forums / Setup & design / Build selection fetch/list and sort

Build selection fetch/list and sort

Author Message

Tim Dickinson

Friday 15 December 2006 6:50:46 pm

Hi all,

I have created a class which contains a number of selection datatypes.
What I would like to be able to do is to create a form with pulldown lists for users to limit their fetch by choosing what they want from those selection datatypes.

To try to explain it a bit better, the content class look like the following

-title
-body
-selection_a
-----option_a_1
-----option_a_2
-----option_a_3
-selection_b
-----option_b_1
-----option_b_2
-----option_b_1
-selection_c
-----option_c_1
-----option_c_2
-----option_c_3
-rating
-url

I would like the user to be able to choose each option for each datatype through a series of pulldown menus, and then when the form is submitted to produce a list of results that have each of those options. I would then like to sort the list by rating (descending)

I know this has something to do with fetch and sort, but I am at a complete loss as to how to create the pulldown lists.

Thanks in advanace,

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Marko Žmak

Monday 18 December 2006 7:59:53 am

You should use attribute filter and sorting by attribute. Check the examples on the bottom of this page:

http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth