I'm using your locator plugin within a structure field. With the current versions Kirby will only output .... I added a little field preview for structure fields.
You can customize the column view with some additional YAML in the kirby blueprint. E.g. this outputs country, city and street (in this order):
locations:
label: My wonderful locations
type: structure
columns:
name:
width: 1/2
location:
width: 1/2
fields:
- country
- city
- street
fields:
name:
label: Name
type: text
location:
label: Location (on map)
type: locator
The default values (city and country) are atm hardcoded.
My JS/VueJS skills aren't that good. Maybe somebody likes to tweak my code a bit.
I'm using your locator plugin within a structure field. With the current versions Kirby will only output
...
. I added a little field preview for structure fields.You can customize the column view with some additional YAML in the kirby blueprint. E.g. this outputs country, city and street (in this order):
The default values (city and country) are atm hardcoded.
My JS/VueJS skills aren't that good. Maybe somebody likes to tweak my code a bit.