We want to localize the default event radius options:
"within 1 mile 5 miles 10 miles 25 miles 50 miles 100 miles"
How do we change the values to:
"within 1/2 mile, 1 mile, 2 miles, 3 miles, 5 miles, 10 miles"
This page:
http://nationbuilder.com/calendar_page_variables
doesn't seem to include documentation on:
{{ page.calendar.distance_radio_buttons }}
(although I see it in the template).
Official response from NationBuilder Support
The radio buttons (and their distance values) called by {{ page.calendar.distance_radio_buttons }} are not editable.
Share this post
Showing 13 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
`{{ page.calendar.distance_radio_buttons | replace: ‘miles’, ‘km’ | replace: ‘mile’, ‘km’ }}`
Cheers!
You may have better luck using a liquid filter, like this https://bitbucket.org/campaigngears/nb-public/src/master/metric/_pages_show_calendar.html
Hines Digital
Certified Architect
Certified Expert
Hines Digital
Certified Architect
Certified Expert
I am comfortable with the code, but am new to NationBuilder. Would you be able to provide context for where you included the snippet to change the distance labels?
Thanks!
Film and Campaign Ltd.
Certified Architect