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

Modifying search_results.html to return category data?

Quote Reply
Modifying search_results.html to return category data?
This question relates to the problem mentioned and almost solved in the Pagebuilder Plugin thread starting at
http://www.gossamer-threads.com/...?post=248193;#248193

We have a project for which LSQL would be very suitable, provided we can be sure of effective search on category columns.

By default, search.cgi returns links to categories if search terms are found in searchable category columns.

We would like it to do something a bit different ... search only on category columns (ignoring the links table completely), and return results which list categories, using a template similar to category.html

ie: we want to loop through found categories, showing full category information, and the links displayed (if any) will be those in categories which match the search term.

Our attempts to modify search_results.html so far have failed -- with some exceptions, we can't get the category columns into <%loop category_results_loop%>, and we also can't list the links in each of the found categories.

Perhaps somone else here has already done this?