Open jensfranke opened 8 years ago
Agreed, this would be very useful in a structure field.
Hi,
Sorry to reopen the issue, but anyone has an idea how to assign/generate an unique ID to a structure field entry ? @calebgrove, you pointed out this link but there is no answer or clue there...
Thank you !
Hello @antoine1000! Github put that link there because I referenced this issue on an issue in one of my repos (where having this feature in Auto-ID would be really nice). Unfortunately, it doesn't contain a fix or anything that would be helpful getting this issue closed.
Hi @calebgrove ,
Thanks for your answer. Texnixe, a member of the kirby forum, provides a solution for this after I asked the other day. You can see his solution here!
Are there plans to add auto ids to the entires of a structure field? Or do you have any hints for me?
And I think you can replace your function
fieldExists
(https://github.com/helllicht/kirby-autoid/blob/master/autoid.php#L112) with this one from kirby: http://getkirby.com/docs/cheatsheet/field-methods/existsThanks in advance