How to get in template select-based field label instead of value?

To get the name field:

<?php echo $page->blueprint()->field('archivs')['fields']['name']['label'] ?>

In the same way for the other fields within the structure.

dump($page->blueprint()->field('archivs'))

returns an array.

1 Like