I’m currently working with structure fields, they’re awesome!
In this particular case I have max: 1, so only one row. Is there a way to access the field data without using foreach loop? I don’t need it since there’s just one row of data.
First I thought I could do something like this:
<?php if ($page->style()->background()->value() === 'dark'): ?>
But apparently not