Jump to content

Question about search module


Andres Gomez

Recommended Posts

Hello,

I wasnt quite sure which part of the forum to post this in and i did some searching around and honestly could not find the exact solution to my problem. I have a listings site (pretty basic business and local services listings site with maps). I have 2 levels of categories and i have a zip code search on the pages for sub categories that lets users narrow down their results to their area. These pages have "icons" which basically are links to the sub category pages that ive built. These icons are basically custom HTML modules i created with <a> tags around the icon and the text underneath it. Is there any way i can carry the filter used in the search in the URL link of these icons in the URLs of the icons and text? Here is a link to the page im trying this on..

 

http://zzmagazine.com/computers

 

As you can see, there is icons under the search module. This is a custom html module i made with a simple table full of images and text. I want the user to be able to put in a zip code and after they submit, be able to click on an icon and navigate to THAT particular category while carrying the filter with them (in this case being the zip code). Is there any way i can do this? Is there a javascript i can write that can alter the URLs in the <a> tags to carry the search filter with it? So for example, the URL after a zip code search is submitted would be "http://zzmagazine.com/computers/search-results_m13/query:all/jr_zip:33186/order:alpha". Cant i take what is after the jr_zip: part and put a variable that pulls the data from what was inputted into the search box? Any help, tips, or advice would be GREATLY appreciated. also thank you for fantastic component!!!

Link to comment
×
×
  • Create New...