Is there a way to use querylanguage in a block label?

for example instead of

name: Box
icon: box
label: "{{ blockdescription }}"

use

name: Box
icon: box
label: "{{ blockdescription.or(title) }}"

Where title is another field.

I also noticed that the field name always needs to be lower case (so I can’t use blockDescription) :man_shrugging:

Cheers,
Sam

Probably not, but I can’t even get a label like in your first example to work in 3.6.1.1.

1 Like

:thinking: You should because it’s working in 3.6.1.1 with me :sweat_smile:

You have to make sure that everything in the label reference is lowercase though. The snippet below works for me:

name: Text with media (image/video)
icon: image
label: "{{ blockdescription }}"

tabs:
  settings:
    label: settings
    fields:
      blockDescription:
        type: text
        label: Block description

Ah, ok, thanks, I was on the wrong track. Since I always use previews, the label is quite useless.

But no, you cannot use query language here because all that happens here is string replacement on the client side.