Merge collection of pages with users

Hi everyone,
I’d like to show a page field or mutliselect field called “speakers” where i can pick from either a collection of pages (teachers) and kirby panel users (which extends Collection).

But neither $collection->add(); or $collection->append works.

Here is my code so far :
First the collection that should return both users and teachers

<?php

use Kirby\Cms\Users;

return function (Users $users) {
    $teachers = collection('teachers');
    $all = $users->add($teachers);
    return $all;
};

And then, the yaml field:

      speakers:
        label: Speakers
        type: pages
        translate: false
        required: false
        icon: users
        query:  kirby.collection('speakers')

Thanks in advance

You cannot add a users collection to a pages collection to then show it in a pages field. Only pages can be options for a pages field - and I think you’d also run into issues merging collections of different types.

You could create a custom page model/method or so where you create an array of text and value entries for each option you want to be able to select. This won’t work with a pages field, but with a select field for example.