Is it possible to get the label of the selected option of a select field in query language?
There is a templating recipe that suggests this code:
$field = $page->blueprint()->field('category');
$value = $page->category()->value();
// single language
echo $field['options'][$value] ?? $value;
And i tried to replicate via query lang as such (completely unsure about the syntax)
"{{file.blueprint.field('horizontalWidth')['options'][file.video.value]}}"
Should I just go and code another custom method ?
Cheeers