 |

George_h
User
Jul 20, 2002, 11:15 AM
Post #1 of 2
(2502 views)
Shortcut
|
|
Help me with the $skin$
|
Can't Post
|
|
Hi I am using search engine with AM and I want to use two sets of search results for different requirements on my site.. The first one is fine as the default 'search_results.html' Now I can find very little documentation on the $skins. In the help file it says that it is the html file used to display the results. On the search forms the referance to skin is set to value="" Can I therefore have 2 skins giving me 2 search result optons eg search_results.html search_results2.html If so how can I do this Kind Regards George
|
|
|  |
 |

Luke
Staff
/ Moderator

Jul 23, 2002, 3:19 PM
Post #2 of 2
(2489 views)
Shortcut
|
|
Re: [Tipking] Help me with the $skin$
[In reply to]
|
Can't Post
|
|
You can do this, however, you will need two separate search forms. Each search form can pass its own skin value and then use the template file passed in the skin value to output the search results. Here's how this is done. 1. Make an exact copy of the /template/search_results.html template file and name it search_results2.html. Save this file in the /templates/ folder. 2. Modify the search_results2.html template file to suit the design you have in mind. 3. Create a new search form by going to the "Sample Search Forms" in the admin area. The source code should look something like this. <form method="GET" action="../search.cgi"> <input type="text" name="search" value="" size="15"> <input type="submit" name="perform_search" value="Search"> <input type="hidden" name="skin" value=""> </form> 4. Save this form as an HTML file (e.g. search_form.html) and modify the "skin" field like so. Change this: <input type="hidden" name="skin" value=""> To this: <input type="hidden" name="skin" value="search_results2.html"> Now depending on the search form site visitors use, a different search results template will be used to output the search results. Let me know if you have any more questions or need help setting it up. :) Luke Holzken Product Development
|
|
|  |
 | |  |
|