# Select user/author from dropdown

**URL:** <https://forum.getkirby.com/t/select-user-author-from-dropdown/3367>\
**Category:** Questions\
**Tags:** v2\
**Created:** [February 18, 2016, 6:24pm UTC](https://forum.getkirby.com/t/select-user-author-from-dropdown/3367 "2016-02-18T18:24:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![onartis](https://avatars.discourse-cdn.com/v4/letter/o/57b2e6/32.png) [@onartis](https://forum.getkirby.com/u/onartis)\
**Post date:** [February 18, 2016, 6:24pm UTC](https://forum.getkirby.com/t/select-user-author-from-dropdown/3367/1 "2016-02-18T18:24:46Z")

</div>

I run a website that has multiple editors. Currently I add authors to articles with a text field.  
Now I’d like a select/dropdown that lists all the users in panel to add as author.  
There is no “users” option to fetch in the [Kirby Select documentation](https://getkirby.com/docs/cheatsheet/panel-fields/select) that I can use.

I know I could do the trick by fetching a set of subpages but I’d like to use Kirby’s built in user management because I’d regularly have to add both a subpage and a user to give them panel acces.

Once that’s figured out I’d also like to create author pages for them. I found a [forum post showing how to do it with routers](https://forum.getkirby.com/t/best-solution-to-display-authors-profile-with-kirby-2-2/2529/3) from a few months ago… Would this still be the optimal way of doing this?

---

<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 18, 2016, 6:32pm UTC](https://forum.getkirby.com/t/select-user-author-from-dropdown/3367/2 "2016-02-18T18:32:44Z")

</div>

You will be happy to hear that instead of a text field you can simply use:

```ini
author:
  label: Author
  type: user

```

---

<div class="post-metadata">

**Author:** ![onartis](https://avatars.discourse-cdn.com/v4/letter/o/57b2e6/32.png) [@onartis](https://forum.getkirby.com/u/onartis)\
**Post date:** [February 18, 2016, 6:42pm UTC](https://forum.getkirby.com/t/select-user-author-from-dropdown/3367/3 "2016-02-18T18:42:17Z")

</div>

Oh dear, how did I not know this exists 😅  
Thank you!

---

<div class="post-metadata">

**Author:** ![daybugging](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@daybugging](https://forum.getkirby.com/u/daybugging)\
**Post date:** [February 26, 2017, 9:59am UTC](https://forum.getkirby.com/t/select-user-author-from-dropdown/3367/4 "2017-02-26T09:59:40Z")

</div>

Could this be extended with your multi-select field? @distantnative, so I could select multiple people that are working on one article, and then somehow access their information inside a loop?

---

<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:** [February 26, 2017, 10:15am UTC](https://forum.getkirby.com/t/select-user-author-from-dropdown/3367/5 "2017-02-26T10:15:39Z")

</div>

The multiselect field uses the same options as the native checkboxes and select fields. Without making any changes to the field, you could use the query API to fetch a list of users as options.

An alternative would be to fork the field and set the options to users. A simple way to achieve this would be to change the constructor in `/field/field-multiselect/field/multiselect.php` like this:

```auto
  public function __construct() {
    $this->icon = 'chevron-down';

    foreach(kirby()->site()->users() as $user) {
      $this->options[$user->username()] = $user->username();
    }
  }

```

---

<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/select-user-author-from-dropdown/3367/6 "2025-02-06T16:52:36Z")

</div>

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


