Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Search Engine:
Help me with the $skin$

 

 


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

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4