I want to display the text: Actualité
rather than the associated value: news
.
Which looks like this in my blueprint :
visibility:
type: radio
label: Page visibility
min: 1
max: 1
required: true
default: visible
options:
archives: Archive
news: Actualité
In the parent page, i’m using a table view with columns:
visibility:
label: Page status
value: "{{ page..blueprint.field(visibility).label }}"
I can do this and it returns “news” but I want “Actualité”.
How can I do this?
I found on the forum
$field = $page->blueprint()->field('text'); echo $field['label'];
To do that for the frontend. But I have not real clue on how to achieve that in the panel…
Do I need a page method here ?
Thanks