Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Specifying seach template in search url

 

 


anjanesh
User

Jul 26, 2006, 10:11 PM

Post #1 of 3 (1001 views)
Shortcut
Specifying seach template in search url Can't Post

The default search results template is located at /templates/search/search_results.html.

Now I have another search results template that I will use for displaying search results, say /templates/search/search_results_2.html

I dont want to overwrite search_results.html. Instead I want to use the second template for another form.

Is there a way to pass an argument to exec/search.cgi so that I can specify which search template to use ?

Something like search.cgi?template=search_results_2.htm

Thanks


Donna
Staff / Moderator


Jul 27, 2006, 4:24 PM

Post #2 of 3 (990 views)
Shortcut
Re: [anjanesh] Specifying seach template in search url [In reply to] Can't Post

Hi there!

That's exactly right, except you also need to tell the search engine that you're actually searching. So, the query would be like this:

http://yoursite.com/path/to/search.cgi?search=1&template=search_results_2.html

Give that a try and let me know how it goes. :)

Donna

--
support@interactivetools.com


anjanesh
User

Jul 27, 2006, 7:24 PM

Post #3 of 3 (988 views)
Shortcut
Re: [Donna] Specifying seach template in search url [In reply to] Can't Post

Thanks ! It Worked !