I use the geofinder add-on, that works with a radius that’s read from the URL (radius is stored in segment_4).
I would like to try to set a max, if people are trying to add an outrageous radius directly in the URL. So I would like to create a maximum.
{if segment_4 >= 51} radius="50" {if:else} radius="{segment_4}" {/if}
Is this the right syntax? Because I can’t get it to work…..or at least, there’s not a maximum set with this code.
Thanks!!!
Cheers, Robbert