I have a problem, and for days I can not find a solution on the internet, so I ask for your active support.
I created an entry in the Company Directory, for the following zip Berlin (14199). The latitude and longitude values via post, I've got form the PostCode LookUp module.
When I search in the template with the field for the postcode search, for "14199", the entry appears.
Now I would like to implement a radius search. I have the impression that the search works, but the entry will not be shown to me, as at the zip code search, the special website is suddenly without css and without content.
I have a feeling that there is some error. Can someone help me maybe? Thanks in advance!
Post code always makes an online query.
I tie the module:
Code: Select all
{CompanyDirectory action="search"}
Code: Select all
<div id="cd_searchform">
{$formstart}
{* display any errors *}
{if isset($errors)}
<p class="errors">
{'<br/>'|implode:$errors}
</p>
{/if}
{* for postal code radius searches *}
<div class="row">
{$mod->Lang('postal_code')}
<input type="text" name="{$actionid}cd_postal" size="20" maxlength="20"/>
<input type="hidden" name="{$actionid}cd_postalchars" value="5"/>
<input type="hidden" name="{$actionid}cd_country" value="DE"/>
<input type="hidden" name="{$actionid}cd_units" value="km"/>
{* for all radius searches *}
{$mod->Lang('radius')}
<select name="{$actionid}cd_radius">
<option value="10">10 km</option>
<option value="25">25 km</option>
<option value="50">50 km</option>
<option value="100">100 km</option>
</select>
<input type="hidden" name="{$actionid}cd_units" value="km"/>
<input type="submit" name="{$actionid}cd_submit" value="Suchen"/>
</div>
{$formend}
</div>