# Kirby Structure ID

**URL:** <https://forum.getkirby.com/t/kirby-structure-id/9397>\
**Category:** Plugins\
**Created:** [January 8, 2018, 9:43am UTC](https://forum.getkirby.com/t/kirby-structure-id/9397 "2018-01-08T09:43:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 8, 2018, 9:43am UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/1 "2018-01-08T09:43:25Z")

</div>

Kirby Structure ID is like [AutoID](https://github.com/helllicht/kirby-autoid) but for structure field entries. It uses a hook to add a unique hash to each entry. This plugin is useful if you need a permanent reference to structure items. Also see this [post](https://forum.getkirby.com/t/generate-a-random-unique-id-hash-for-a-structure-field-entry/6425/12).

> **[texnixe/kirby-structure-id](https://github.com/texnixe/kirby-structure-id)**
>
> Adds unique hashes to structure field entries. Contribute to texnixe/kirby-structure-id development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 12, 2018, 10:14pm UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/2 "2018-01-12T22:14:30Z")

</div>

Just released version 1.2.1 with support for multiple structure fields, see new config option.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 30, 2018, 8:07am UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/3 "2018-01-30T08:07:46Z")

</div>

Kirby Structure ID has been updated to version 1.2.3.

**New features:**

- option to add your own unique hash generator
- support for placeholders on the root level

---

<div class="post-metadata">

**Author:** ![stffr](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@stffr](https://forum.getkirby.com/u/stffr)\
**Post date:** [April 4, 2018, 10:39am UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/4 "2018-04-04T10:39:56Z")

</div>

Thank you for the plugin. I try to use it with a structure field in my panel options (`{host}/panel/options`), but I cannot get it to work properly.

It works fine on a default sub page, but when I try to add the the same structure field in the **panel options** it doesn’t add the ID after saving the page. I tried `(:all)` and `(:any)` in the `c::set('structure.id.data', []);` option , but even that fails…

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 4, 2018, 11:46am UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/5 "2018-04-04T11:46:55Z")

</div>

The reason is that the plugin currently only uses a panel.page.update hook and not a site.update.hook, so updating doesn’t work for the $site object.

When I find the time, I’ll update the plugin.

---

<div class="post-metadata">

**Author:** ![lauri](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lauri/32/3305_2.png) [@lauri](https://forum.getkirby.com/u/lauri)\
**Post date:** [March 12, 2019, 5:29pm UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/6 "2019-03-12T17:29:16Z")

</div>

This plugin doesn’t seem to be compatible with Kirby 3?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 12, 2019, 8:59pm UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/7 "2019-03-12T20:59:54Z")

</div>

No, it isn’t. But [https://github.com/bnomei/kirby3-autoid](https://github.com/bnomei/kirby3-autoid) has incorporated this functionality

---

<div class="post-metadata">

**Author:** ![lauri](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lauri/32/3305_2.png) [@lauri](https://forum.getkirby.com/u/lauri)\
**Post date:** [March 13, 2019, 8:35am UTC](https://forum.getkirby.com/t/kirby-structure-id/9397/8 "2019-03-13T08:35:35Z")

</div>

Ah, perfect. Thank you!
