helllicht / kirby-autoid

AutoID is a plugin for Kirby 2 wich generates unique ids (numeric or hash) for every page.
MIT License
46 stars 3 forks source link

support for entries in structure fields #4

Open jensfranke opened 8 years ago

jensfranke commented 8 years ago

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/exists

Thanks in advance

calebgrove commented 8 years ago

Agreed, this would be very useful in a structure field.

antoine1000 commented 6 years ago

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 !

calebgrove commented 6 years ago

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.

antoine1000 commented 6 years ago

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!