Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Allow sorting links dynamically by price via category.html and search.cgi

Quote Reply
Allow sorting links dynamically by price via category.html and search.cgi
I have a price filed in the links table. What I want is to provide way so the users can sort category page links and/or search results DYNAMICALLY via search.cgi by Ascending/Des price or High/Low price like so -

<"/cgi-bin/search.cgi?Price=Asc">Sort links Ascending</A>
OR
<"/cgi-bin/search.cgi?Price=High">Sort links by Highest Price</A>

So, basically I want to put links in category.html and/or search_results.html which connect to search.cgi and when clicked upon will rearrange links with High/Low price.

One thing to note though is that some links have commas and decimals in the price field and some don't but I want the search to ignore commas and decimals and just straightaway sort links based on price.

Thanks!
Subject Author Views Date
Thread Allow sorting links dynamically by price via category.html and search.cgi socrates 4899 Mar 25, 2017, 7:55 PM
Thread Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi
Andy 4766 Mar 26, 2017, 6:30 AM
Thread Re: [Andy] Allow sorting links dynamically by price via category.html and search.cgi
socrates 4757 Mar 27, 2017, 11:18 PM
Post Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi
Andy 4751 Mar 27, 2017, 11:33 PM
Thread Re: [socrates] Allow sorting links dynamically by price via category.html and search.cgi
el noe 4737 Mar 30, 2017, 7:06 AM
Post Re: [el noe] Allow sorting links dynamically by price via category.html and search.cgi
socrates 4473 Apr 24, 2017, 9:07 PM