Hey!
Thank you very much for your great cms! I really love the new unique id system in Kirby 3.8. Before this feature I used the the AutoID-plugin by bnomei. AutoID also works in structure fields. The new native feature also seems to be integrated in structures:
The Uuid classes provide an interface to connect identifiable models (page, file, site, user, blocks, structure entries) with a dedicated UUID string.
But I’m not sure how to use the UUID in the structure field.
districts:
label:
en: Districts
de: Bezirke
type: structure
fields:
name:
label:
en: Name
de: Name
type: text
width: 1/4
sortBy: name DESC
parks:
label: Parks
type: structure
fields:
name:
label:
en: Name
de: Name
type: text
district:
label:
en: District
de: Bezirk
type: select
options:
type: query
query: site.districts.toStructure
text: "{{ structureItem.name }}"
value: "{{ structureItem.uuid }}"
But I can’t find any uuid in the site.txt-file, where is the structure stored:
----
Districts:
-
name: Charlottenburg-Wilmersdorf
-
name: Friedrichshain-Kreuzberg
-
name: Lichtenberg
-
name: Marzahn-Hellersdorf
-
name: Mitte
-
name: Neukölln
-
name: Pankow
-
name: Reinickendorf
-
name: Spandau
-
name: Steglitz-Zehlendorf
-
name: Tempelhof-Schöneberg
-
name: Treptow-Köpenick
----
Because of the uuid in the query the editor fails and lists only one structure entry:
What am I doing wrong? And if the UUID is not supported in structures yet: What alternative do I have? The AutoID is already end-of-life.
Thanks!