This question may be related to a resolved thread.
Hello all, I’m loosing my mind with this one, I’m hoping you all can assist…
My issue is almost exactly like that above BUT my seach:(custom_field) is returning zero results. I’ve broken my search down to one select criteria: Location. Here’s the code:
<form method="post" action="{path='search_results/'}">
<fieldset>
<div id="rentals" class="tabdiv">
<label><strong>LOCATION:</strong> </label>
<select class="medium" name="search:location">
<option value="Any Location">Any Location</option>
<option value="Downtown">Downtown</option>
<option value="Campus">Campus</option>
<option value="East">East</option>
<option value="Ellettsville">Ellettsville</option>
<option value="North">North</option>
<option value="South">South</option>
<option value="West">West</option>
</select>
<div class="search_container">
<input type="submit" value="Go!" /></a>
</div>
</div>
</fieldset>
</form>Which be seen and tested here in the sidebar: http://test.hallmarkrentals.com
Upon selecting a location, say East and pressing ‘Go’ you should get 2 results on the Search Results page. Instead I’m getting all entries related to channel rental_properties. Here’s the Search Results page code:
{exp:channel:entries channel="rental_properties" dynamic_parameters="search:location"}
<div class="search_result">
{property_images}
{image}
{/property_images}
{top_features}
<div class="property_data">
<span class="{property_availability}">{property_availability:label}</span>
{title}
<strong>Location:</strong> {location}
<strong>Property Type:</strong> {property_type}
<strong>Bedrooms: </strong> {bedrooms}
<strong>Bathrooms:</strong> {bathrooms}
<strong>Monthly Rent:</strong> {rent}
</div>
{/top_features}
<div class="search_linkcol">
<a href="http://{url_title_path=%27residential/view%27}" title="{title}">Visit Property Page</a>
<a href="http://maps.google.com/maps?q={title}," title="Map">Get Directions</a>
<a href="http://{site_url}contact_us" title="Contact Us">Contact Us</a>
</div>
</div>
{/exp:channel:entries}Which can be seen here: http://test.hallmarkrentals.com/search_results
- -
Any idea what I’m missing or doing incorrectly?
Eventually I want filter through several results, and post the number of results returned.
Thanks!
Ryan