Keyword Search
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 3, 2011 (RSS)
Well first of all, Happy New Year to all of you!
We are trying to implement a keyword search, again. But we have some questions/concerns.
In the past we implemented a keyword search using the multi-search function. This gave us some limited usability with not being able to display the photos associated with the listings (since we have ~43 different tables of categories)
Now we have created a search form that our users would have to select a category from the drop down, then enter the search terms. We set it up so the dropdown acts as a "jump Menu". This will allow us to show the results on our results viewer pages that are already setup. This also gives us the ability to display photos, etc for the listings. It also prevents us from having to create another results page.
I know that we have to ability to use
" ../viewers/costume_rentals_results.php?name,short_description,city_keyword=sampleCity to have the sampleCity be searched as a keyword.
For example:
http://cloud.rentittoday.com/viewers/costume_rentals_results.php
I learned through trial and error that adding an "&" between search terms works with multiple keywords. So, we have a working "jumpmenu" that will direct users to the correct viewer page based onteh category that they select, as well knowing the proper coding that will provide the results we want. But we are stuck trying to get it all to tie together.
How do we code the search box in order to get it to go the correct page, while adding the keywords that the user enters, separated by "&"s?
The coding for the search form is not complete when it comes to the values of the dropdown, but Costume Rentals works.
Thank you in advance for any help!
We are trying to implement a keyword search, again. But we have some questions/concerns.
In the past we implemented a keyword search using the multi-search function. This gave us some limited usability with not being able to display the photos associated with the listings (since we have ~43 different tables of categories)
Now we have created a search form that our users would have to select a category from the drop down, then enter the search terms. We set it up so the dropdown acts as a "jump Menu". This will allow us to show the results on our results viewer pages that are already setup. This also gives us the ability to display photos, etc for the listings. It also prevents us from having to create another results page.
I know that we have to ability to use
" ../viewers/costume_rentals_results.php?name,short_description,city_keyword=sampleCity to have the sampleCity be searched as a keyword.
For example:
http://cloud.rentittoday.com/viewers/costume_rentals_results.php
I learned through trial and error that adding an "&" between search terms works with multiple keywords. So, we have a working "jumpmenu" that will direct users to the correct viewer page based onteh category that they select, as well knowing the proper coding that will provide the results we want. But we are stuck trying to get it all to tie together.
How do we code the search box in order to get it to go the correct page, while adding the keywords that the user enters, separated by "&"s?
The coding for the search form is not complete when it comes to the values of the dropdown, but Costume Rentals works.
Thank you in advance for any help!
Jason Glass
Re: [rentittoday] Keyword Search
By Jason - January 3, 2011
Hi,
It sounds like you need to be able to change the action attribute of your <form> tag based on what they've selected from the drop down menu. This can be done with some javascript.
Take a look at this post that does something similar with radio buttons:
http://www.interactivetools.com/forum/gforum.cgi?post=84348#84348
This should get you started.
Hope this helps.
It sounds like you need to be able to change the action attribute of your <form> tag based on what they've selected from the drop down menu. This can be done with some javascript.
Take a look at this post that does something similar with radio buttons:
http://www.interactivetools.com/forum/gforum.cgi?post=84348#84348
This should get you started.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/