Display the Label instead of the Key in a Blueprint

Hey hey!

I have the following field inside a file blueprint:

testField:
  type: select
  options:
    test1: First Test Entry
    test2: Second Test Entry
    test3: Third Test Entry

In a page blueprint I want to place this information like this:

info: "{{ file.testField }}"

Now Im getting “test1” but I want to get “First Test Entry“. How can I achieve that?

Thanks for any help!

Basically like this: Fetching field options | Kirby CMS

And to use one of these ways in combination with the blueprint query language, wrap the code in a custom page method or page model method.

You don’t have direct access to the label because the label is not part of the content but only exists in the blueprint.