Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-29 02:49:15

cuda
Member
From: Georgia, USA
Registered: 2008-02-06
Posts: 70
Website

Search by selected Custom Field

Here is what I am trying to accomplish….Say you are on ebay and you have some search results for “foobar” and you want to sort them by price so you go to the sort by drop down and click “price: high to low” and away you go.

Well I want to do this with textpattern and base it on custom fields. So I can search but I am trying to determine the best way to search and return an ordered list from high to low or A-Z……

One way I am thinking is not a search at all but use the article tag to sort like this:

<txp:article_custom section=“my_section” sort=“custom_1 asc”/> but how would be the best way to do multiple options on one page because this will only do one sorting scenario. Then how would I sort by say “custom_2 desc” with a click???

Any thoughts or plugins that might come in handy here?

Thanks

Last edited by cuda (2008-05-29 02:50:40)

Offline

#2 2008-05-29 03:11:21

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Search by selected Custom Field

Take a look at glz_custom_fields

Offline

Board footer

Powered by FluxBB