Hello everyone!
I'm back again with another problem. I'm trying to create a bunch of filters with the code given in another topic but I would like to implement "relations" inside the "Country", the "City" and the "Local" parameters.
I've tried a lot of examples that i've found on the forum but every time I try to create the relation between the "Country" and the "City", the "City" disappears and won't show again.
Please help!!
Thank you!
I'm back again with another problem. I'm trying to create a bunch of filters with the code given in another topic but I would like to implement "relations" inside the "Country", the "City" and the "Local" parameters.
I've tried a lot of examples that i've found on the forum but every time I try to create the relation between the "Country" and the "City", the "City" disappears and won't show again.
Please help!!
- Code: Select all
<div id="quick-search" style="float:right; margin-right:50px;">
<cms:form name="quicksearch" id="quicksearch" anchor='0'>
<cms:if k_success >
<cms:if frm_country!='-' >
<cms:set my_search_str="<cms:concat my_search_str ' | country==' frm_country />" scope='global'/>
</cms:if>
<cms:if frm_city!='-' >
<cms:set my_search_str="<cms:concat my_search_str ' | city==' frm_city />" scope='global'/>
</cms:if>
</cms:if>
<div>
<label>Country</label>
<cms:input onchange="this.form.submit()" type="dropdown" opt_values='=- | Aveiro | Setúbal' opt_selected='-' name="country" id="country" />
</div>
<div>
<label>City</label>
<cms:input onchange="this.form.submit()" type="dropdown" opt_values='=- | Arera Colony | M P Nagar | Old City | Karond' opt_selected='-' name="city" id="city" />
</div>
</cms:form>
</div>
<script>$('#quicksearch').change(function(){$(this).closest('form').trigger('submit');});</script>
Thank you!