I’m using a pages field to store authors (which are just plain old pages) in an article. Because the pages field stores pages as slugs, that means right now if I change the url of a page, the link to the author needs to be added again.
I already have a page model for the author page that returns all contributions of an author as a collection, so I guess I could use a page.changeSlug:before hook and change all author values on those pages. Just not sure about how this will behave in terms of performance.
Also I’m cross-referencing pages at a bunch of places throughout the entire site, so I’m wondering if it’s possible to entirely change the way that the pages field stores values, or if there exists some plugin already.
I’m using that plugin. Might play around with a multiselect field, but it would be nice to keep the pages field with its search bar and linked pages… Hopefully the site’s editors don’t make any typos in names
I was also just looking for it and couldn’t find it. Does that mean that the idea is discarded or that unique, unchanging IDs are something that’s on the horizon for future updates of either Kirby or the AutoID plugin? If not, it might actually be worth considering a rebuild of the pages field in a custom plugin…
Still, you cannot use the pages field to store the autoid at the moment, but have to use a select/multiselect field instead or create a custom pages field.
@bnomei, thx! Love your plugin, been using it since I came across it! But yes, as @pixelijn pointed out, would be nice to have the pages field possibilities.