{"filter_format":"range_search","country_field":{"display_mode":"select","default":"","highlighted":"","custom_list":""},"state_field":{"mode":"text"},"city_field":{"mode":"text"},"zip_code_field":{"mode":"text","regex":""},"street_address_field":{"mode":"text","regex":""},"full_address_format":"{streetAddress}, {zipCode} {city} {state}, {country}"}
Please check it in our demo:I have a big wish, please.
Just try to change your location field in your forum to "selected" instead of "range search".
I really want to see, what happens then in your forum.
It is saved for every "location" type field, not every field, and the information holds field configuration. Is there any reason why you are concerned with the information stored there?xf_rm_resource_field.location_option
you save something like that for every field
<xf:if is="$config.getSearchFormatOption()==='range_search'">
It seems to me that this is ALWAYS TRUE, because i never see anything else than the form for range based search.
<xf:if is="$config.getSearchFormatOption()==='should_not_be_true_range_search'">
<xf:if is="$config.getSearchFormatOption()==='range_search'">
altf_forum_view_active_filters
<xf:macro template="allf_custom_fields_macros" name="filter_value_location" arg-info="{$info}"/>
<xf:macro name="filter_value_location" arg-info="!">
<xf:if is="{$info.templateParams.unit}==='km'">
<xf:set var="$unit" value="{{ phrase('alrf_km') }}"></xf:set>
<xf:elseif is="$info.templateParams.unit==='mile'"/>
<xf:set var="$unit" value="{{ phrase('alrf_mile') }}"></xf:set>
<xf:else/>
<xf:set var="$unit" value="$info.templateParams.unit"></xf:set>
</xf:if>
<xf:set var="$distance">{$info.templateParams.range|number}</xf:set>
<xf:if is="$info.templateParams.config.isCountrySelectionEnabled()">
<xf:set var="$address">{$info.templateParams.address}, {$info.templateParams.config.getValidCountryName($info.templateParams.country_code)}</xf:set>
<xf:else />
<xf:set var="$address">{$info.templateParams.address}</xf:set>
</xf:if>
{{ phrase('alrf_within_distance_unit', {'distance': $distance, 'unit': $unit, 'address': $address}) }}
</xf:macro>
allf_custom_fields_macros
<h3 class="block-minorHeader block-filterBar">
<xf:if is="{$xf.options.altf_auto_collapse}">
<span class="collapseTrigger collapseTrigger--block" data-xf-click="toggle" data-target="< :up:next">
{{ phrase('filters') }}
</span>
<xf:else/>
<span>
{{ phrase('filters') }}
</span>
</xf:if>
</h3>
altf_thread_filter_form_macros
If you live in Austria you maybe have Austria, Germany and Switerland, bcause of the same language, but with focus on Austria.
Then it would be nice to have a default and load at least the first field with default Austria and the second with the list automatically.
Else maybe 95% of the people hate to come daily and do daily the same (unnecessary) click for Austria.
The release implements a new format for the custom field - a text field powered by Google Places auto-completion. Administrators can choose if they want to use the older format or the new one for each custom field.
Google Places API key is required for the new option. Please check the product settings after the upgrade.
The new version is available for all licensed customers at https://customers.addonslab.com/marketplace.php/my-services/
Thank you!
We use essential cookies to make this site work, and optional cookies to enhance your experience.