Can i query all the blueprint names from the site index?

something similar to this?

    options: query
      query: site.index
        text: "{{ site.index.blueprint.name }}"
        value: "{{ site.index.blueprint.name }}"

To query all page blueprints, use $kirby->blueprints() | Kirby CMS

1 Like

got it, thx
is there a way to exclude some explicitly?

  templateFilter:
    label:
      en: Page type filter
      de: Seitentypen
    type: multiselect
    options: query
    query: kirby.blueprints

Since kirby.blueprints returns an array, you would have to create a custom method (maybe a site method), that returns a filtered array.

1 Like