 |

summer
User
Jun 3, 2006, 10:42 AM
Post #1 of 8
(6323 views)
Shortcut
|
|
Adding City/State to Search Page
|
Can't Post
|
|
1.) Don't know if I am posting this in the right place or not, and it may seem easy to everyone else. But, I want to be able to include City and State in my search both on my front page and on my Advanced Search Page. Can someone tell me how to do this? 2.) Also, is it possible to have different Advanced Search pages? We want to have real estate for sale and rentals and RVs listed online, but our RVs have different search criteria than homes/rentals. Can we have a customized search page for RVs that bring up only RVs and also customized listing index and listing pages for RVs only? My website is www.snowbirdyrealestate.com if you need to understand what I am talking about. Thanks, Summer
|
|
|  |
 |

ross
Staff
/ Moderator

Jun 4, 2006, 11:05 AM
Post #2 of 8
(6321 views)
Shortcut
|
|
Re: [summer] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
Hi Summer. Thanks for the posting! I definitely thing you are in the right forum here . With Search Engine, your searches are going to be done based on keyword matching of anything you enter in the main keyword text field. What this means is that there wouldn’t really be the need for a separate search field as it would just be searching the same content on the same pages. You’ll be able to have separate advanced search pages though. I find the easiest way to make new search pages would be to just go to your main advanced search page and view the source code. Copy the source and paste it to a new page. Now, you can start editing the new one as you need to. The reason I view the source code is that we make sure all the fields have proper names. How does that sound? Let me know if you would like anymore details . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

summer
User
Jun 8, 2006, 5:24 AM
Post #3 of 8
(6269 views)
Shortcut
|
|
Re: [ross] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
Hi Ross, OK I think I need more details - Say I make a separate search page for Homes for Sale, Homes for Rent, and RVs - these don't have to be in the template folder that _search_query is in do they? They can just be in my main website index correct? The other thing I need help with is the code to add city and state to each search. I can't seem to get it right or working. I want people to be able to search by city/state. And lastly - When I create a new search page for RVs I'd like it to bring up a totally different _publish_listing_index.html and _publish_listing. I'd like it to bring up a customized one for RVs. FOr example RVs do not need Fireplace or Pool options, etc. But they do need engine, or fuel type, mileage options, so I want their listing index and listing pages to be totally different. Thanks, Summer www.snowbirdyrealestate.com
|
|
|  |
 |

Donna
Staff
/ Moderator

Jun 8, 2006, 1:54 PM
Post #4 of 8
(6263 views)
Shortcut
|
|
Re: [summer] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
Hi Summer! Thanks for your post. I'm going to answer your last question first, since it's the most involved. What we'll end up doing is having a separate search query, search results & publish listing template for each "section" of the site, each of which you can customize as you need. Step 1: Create a new search query template based on the _search_query.html template, named _search_query_sale.html. Setup the design however you like, and add the following hidden field below the opening <form> tag in your search form. <input type="hidden" name="template" value="_search_results_sale.html"> Step 2: Create a search results template with the filename you specified above, again with the look & feel & specific fields that you want. In this new search results template, find all the links to the listing page. It will look like this: <a href="$listing_url$/$listing_file$"> Replace it with this: <a href="$search_url$?view=$listing_num$&template=_publish_listing_sale.html"> Step 3: Create a new listings template called _publish_listing_sale.html based on the _publish_listing.html template with the look and feel that you want, including the specific fields. This means that for every section of the site (Homes for Sale, Homes for Rent, and RV's), you'll need to create three templates -- the search query, the search results, and the page listing. You'll also have to change the way that you get to the search query page, the link will be as follows: <a href="$search_url$?template=_search_query_sale.html">Search Homes for Sale</a> ... Or to get to it directly, http://www.yoursite.com/rm/exec/search/search.cgi?template=_search_query_sale.html Alternately, you can hardcode the search page elsewhere, externally to Listings Manager. Just make sure you replace all of the placeholders (the bits of text surrounded by dollar signs) with the actual content, as placeholders only work on pages generated by, or processed through Listings Manager. Now that we've gone over that (I think that covers your first and third question), let's take a look at the city & state code. What you'll want to do is add a field like this: <input type="text" name="lfieldX_keyword"> ...replace the "X" with the listing field number that you're trying to search on. I hope this helps! Let me know if you're still having any trouble -- with those search fields, let me know what you've currently got and I can give you a hand figuring out why it doesn't work. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

sherazalvi
Novice
Jul 27, 2006, 4:50 PM
Post #5 of 8
(5893 views)
Shortcut
|
|
Re: [Donna] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
Hi Donna Well in respect to the question 2 for adding city and post code to the site search I am having trouble as I have done the same you asked but the code searches for an exact match but I need the code to query through the Address field and pick up results to any of the matches it gets. For example if the customer is adding N12 so if there are two addresses with N127KL or N128PP the results should comprise of both. Please help!!!
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 28, 2006, 1:11 PM
Post #6 of 8
(5876 views)
Shortcut
|
|
Re: [sherazalvi] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
Hi there :) The same should still work -- because you're using the keyword modifier, it only has to have a partial match. A complete match would require the _match modifier instead. So, what you're looking for should still work fine as described above. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

sherri
New User
Sep 28, 2006, 7:26 AM
Post #7 of 8
(4723 views)
Shortcut
|
|
Re: [summer] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
I have a similar issue. I have added the location (state) search but my search button is not bringing results, I get an error page? I read this thread but am really confused. Our site is www.uniquevacationrentals.comCan you help see what I am missing?
|
|
|  |
 |

ross
Staff
/ Moderator

Sep 28, 2006, 10:45 AM
Post #8 of 8
(4713 views)
Shortcut
|
|
Re: [sherri] Adding City/State to Search Page
[In reply to]
|
Can't Post
|
|
Hi Sherri Thanks for posting! I have been looking into your search engine issue today and I am a little confused as well . It actually seems like you are using the Listings Manager search engine (which isn’t a problem, we’ll just want to move your post over to another forum) and I am not actually seeing a location field. One other thing is that the search appears to be working ok for me (no error messages). Could you give me a few more details about what’s happening here? I might just be looking in the wrong place so if you could get back to me, I a sure we can sort everything out together . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 | |  |
|