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

Home: Discontinued Products: Search Engine:
Custom search form with specific categories.

 

 


xr280xr
New User

Mar 8, 2006, 12:04 PM

Post #1 of 5 (2844 views)
Shortcut
Custom search form with specific categories. Can't Post

Hi,

I was wondering if you could expand on this line of the documentation a little bit:

"You can also build search forms yourself which are hard-coded to search certain categories, by using "hidden" input fields."

If you could give a short example it would be helpful. Also can you tell me what the hidden field with name="skin" and value="" is for in the basic search form? Can I take portions of the advanced search form and add them to the basic search form? For instance could I grab the Look For: Any Of the Words/All Words/Exact Phrase drop down list code and add it to the basic search form? Just trying to get a feel for how these forms work, thanks!


Cliff
Staff


Mar 9, 2006, 12:41 PM

Post #2 of 5 (2808 views)
Shortcut
Re: [xr280xr] Custom search form with specific categories. [In reply to] Can't Post

Hi xr280xr,

Thanks for posting and welcome to the discussion forum!

To build search forms which are hard-coded to search certain categories you just need to add the following hidden form field to the search form:

<input type="hidden" name="categories" value=3>

The line above will tell the search to look through category #3. To find out the category's record number, in the category editor select modify for the category that you want to include. On the modify screen remember the number on the end of the URL:

e.g.

admin.cgi?category_edit=3

In this example the number is 3 so this is the category number 3.

You can copy any element of the Advanced Search form in to the Basic Search form. The Basic Search is really just a trimmed down version of the Advanced Search. So feel free to use whatever fields you like!

I hope that helps Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


xr280xr
New User

Mar 9, 2006, 3:52 PM

Post #3 of 5 (2804 views)
Shortcut
Re: [Cliff] Custom search form with specific categories. [In reply to] Can't Post

Thanks, that makes sense. So I couldn't hard code it to search multiple categories then right? What about the hidden field named skin? Can you tell me it's purpose?


Cliff
Staff


Mar 10, 2006, 11:05 AM

Post #4 of 5 (2731 views)
Shortcut
Re: [xr280xr] Custom search form with specific categories. [In reply to] Can't Post

Hi xr280xr,

Actually setting up the program to search multiple categories is really simple. You can allow users to search multiple categories by joining the category ID's together like this:

<input type="hidden" name="categories" value="3,2,1">

Sorry I missed that skin question in your first post there! What you can do is specify the skin, or template that a form will use as it's results template by setting up a hidden input field like this:


Code
<input type="hidden" name="skin" value="search_results_categoryA.html">


So the easiest thing to do would be to just make a copy of your existing _search_results.html template, and re-name it something appropriate like 'search_results_categoryA.html'. Then make the template look the way that you need to. So it's just a way of using a different look for different sections Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


xr280xr
New User

Mar 10, 2006, 12:09 PM

Post #5 of 5 (2720 views)
Shortcut
Re: [Cliff] Custom search form with specific categories. [In reply to] Can't Post

Cool, everytime I learn something new about this program I like it more. Thanks!

Jesse

 
 
 


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