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

search results in category.html

Quote Reply
search results in category.html
Is there a way to display search results in the category page. to use a global that return the same result as I would get if I use the search.cgi and to insert the top 5 of them in the category page.
Quote Reply
Re: [nir] search results in category.html In reply to
 
Not sure how to create a global for that, however you can try this:

1. Setup a search result page
2. Call it via include function (so in this way you can include different pages for different query)

Hope this helps.

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [nir] search results in category.html In reply to
Hi,

The simple answer - is you can't. You would have to somehow duplicate the function from doing a search.

The other option would be to make a new search_results.html template - and just have it included via a global (with a basic template - i.e just plain text) ... but again, thats not that simple to do (I believe its not as simple as just passing search.cgi?query=xxx;t=search_results2)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates