Custom country select field for kirby. Countries used (select ‘Country codes’).
git submodule add https://github.com/iksi/kirby-country-field.git site/fields/country
Or place a country
folder in /site/fields
with the repository’s contents.
You can define the country field in your blueprint as follows:
country:
label: Country
type: country
format: name
default: Belgium
As format you can either use code
or name
which determins whether the country’s iso code or name is being used as a the value that will be stored:
country:
label: Country
type: country
format: code
default: be
Converting this into a field with a datalist
as soon as Safari supports them.