# Is it possible to iterate through user blueprint field options?

**URL:** <https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 5, 2017, 2:42pm UTC](https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849 "2017-03-05T14:42:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![csmnng](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/csmnng/32/3443_2.png) [@csmnng](https://forum.getkirby.com/u/csmnng)\
**Post date:** [March 5, 2017, 2:42pm UTC](https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849/1 "2017-03-05T14:42:08Z")

</div>

I was wondering if I have a checkboxes field with options. Is it possible to iterate through those? I wanna show checkboxes in HTML dynamically based on what options are available in the blueprint.

Thanks!

---

<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 5, 2017, 2:54pm UTC](https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849/2 "2017-03-05T14:54:50Z")

</div>

You would have to read the blueprint files and there is a plugin for that: [https://github.com/AugustMiller/kirby-architect](https://github.com/AugustMiller/kirby-architect)

Kirby itself only reads the text files that do not have this information.

Do you have many checkboxes with many options that would justify using a plugin like that? Otherwise you might as well store that information in a config file. It’s static data after all, not dynamic.

---

<div class="post-metadata">

**Author:** ![csmnng](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/csmnng/32/3443_2.png) [@csmnng](https://forum.getkirby.com/u/csmnng)\
**Post date:** [March 5, 2017, 2:59pm UTC](https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849/3 "2017-03-05T14:59:51Z")

</div>

Thank you! And does this automatically detect blueprints in the user folder?

---

<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 5, 2017, 3:02pm UTC](https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849/4 "2017-03-05T15:02:56Z")

</div>

Sorry, I don’t know how the plugin works and what exactly it does, I’ve never used it myself.

This works:

```auto
$test = Architect::blueprint('users/admin');
dump($test);

```

Or to get the options of the field “myselect” from the users/admin.yml

```auto
dump(Architect::field_options('users/admin', 'myselect'));

```

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:52pm UTC](https://forum.getkirby.com/t/is-it-possible-to-iterate-through-user-blueprint-field-options/6849/5 "2025-02-06T16:52:31Z")

</div>

Archived on February 6, 2025, 4:52pm UTC


