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.
Aug 26, 2009, 1:56 AM
Veteran (1127 posts)
Aug 26, 2009, 1:56 AM
Post #2 of 3
Views: 3258
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
-------------------------------------------------------
Aug 26, 2009, 2:36 AM
Veteran / Moderator (18441 posts)
Aug 26, 2009, 2:36 AM
Post #3 of 3
Views: 3274
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!