Display Blueprint Labels on Front End

There is a plugin for that: Kirby Architect

But I agree with @invasoria, just to get the field label, that’s overkill and will unnecessarily slow down your page.

As the label is the same as the field name, you might as well do this:

<?= ucfirst($page->skills()->key()) ?>

For cases where the field key is different from the label, you can use a label map to get the label (you would have to build that manually, though)

c::set('labelMap', array(
'skills' => 'Skills',

));

You can the fetch it in your template like this;

<?= c::get('labelMap')[$page->skills()->key()] ?>
2 Likes