Closed tobystokes closed 7 years ago
That's a very good idea, and should be easy to implement. I will try to get a release out with that addition in the next day or two.
This is added in v1.5.0. You can access the array of countries using craft.vzAddress.countries
. So your example above would become:
<select name="country">
{% for countryCode, countryName in craft.vzAddress.countries %}
<option value="{{ countryCode }}">{{ countryName }}</option>
{% endfor %}
</select>
nice!
Great plugin (I use it's dadEE too!)
Is it possible to get a full list of all the country codes in a twig front end template?
I'm trying to make a form to search for addresses, and while the following generates the correct output:
I'd rather not duplicate that entire country list from your fieldtype.