Hello,
I used to update pages fields in k3 by yaml encoding arrays with full slugs, such as “artists/their-name”, and they would be stored exactly as expected, a yaml formatted list of such slugs.
Now I am trying to do the same in k4 and it is not working, and I also saw that the when updating the pages field manually from panel, it stores not the full slug but the UUID. May this be the cause of my problems?
Can I not update a pages field using yaml encoded full slugs anymore? Do I need to use UUIDs?
…or perhaps my problem lies elsewhere…
Thanks
I can see from the UUID guide, that:
The files
, pages
and users
fields support UUIDs out of the box. Every page or file that you select will be referenced by its UUID automatically (unless you disable the UUID mode with the field’s store
property).
…which would seem to indicate that I can either use one or the other, UUID by default.
I close this topic, start another for details on how to deal with UUID’s arrays and yaml encoding.
You can switch to storing the id via the store
option: Pages | Kirby CMS
Yes, thank you, I found it in the quoted text from the UUID guide.