Blueprint Multiselect

Hi, I have a question. What I want to do now is to set the items of a multi-select dropdown from the tags (structure fields). It works, but I want to allow the users to share the items of the multi-select.

blueprint/users/tester.yml
It works

tags:
        label: Tags
        type: structure
        width: 1/2
        fields:
          tagname:
            type: text
tagpool:
        type: multiselect
        widht: 1/2
        options:
          type: query
          query: kirby.user.tags.toStructure.pluck("tagname", ",", true) # Here!

but What I want to do


tags:
        label: Tags
        type: structure
        width: 1/2
        fields:
          tagname:
            type: text
tagpool:
        type: multiselect
        widht: 1/2
        options:
          type: query
          query: kirby.users.tags.toStructure.pluck("tagname", ",", true) # Here!!

You need a method that collects all items of all users into a single array here, you cannot get a field of all users like that from a structure.

Although I really wonder why you are using a structure field at all when you only have a single field in it, then you might as well use a tags field. And then querying from all users would be easier as well.

So, if you use a tags field for tags:

tags:
  label: Tags
  type: tags
  width: 1/2

You can pluck all tags into the multiselect

tagpool:
  type: multiselect
  width: 1/2
  options:
     type: query
     query: kirby.users.pluck.("tags", ",", true)
1 Like