Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Trying to create search based on field

Quote Reply
Trying to create search based on field
Not a very good title for what I'm trying to do. Can't think of a short or clear version!

What I want to do is let visitors slice our links geographically as well as by the topic-based categories.
So we have a field "Address_Region" and a menu bar which links to 18 or so versions of:
search.cgi?d=1&query=&catonlyresults=1&Address_Region=whatever

catonlyresults is a flag for search_results.html to format results with:
<%loop link_results_loop%>
<%title_linked%><BR />
<%endloop%>
so we get just a list of categories that contain results from the region requested, without the links themselves.

But of course clicking on the linked title displays the entire category, not just the results for the region. I'd hoped I could modify title_linked so that the last part of the breadcrumb would be a search with both category and region specified. Although that might be doable it would require a cat name to catID translation and some complex regexp substitutions. Clumsy at best - is there an easier/more obvious way to achieve what I want (v2.2.1) ?

Thanks

Stewart
Subject Author Views Date
Thread Trying to create search based on field CrazyGuy 1832 Sep 22, 2005, 3:44 PM
Post Re: [CrazyGuy] Trying to create search based on field
CrazyGuy 1760 Sep 23, 2005, 4:18 AM