Hi! Maybe this is more of a general PHP question than a Kirby question:
if I have multiple text fields in a single blueprint (field1, field2, field3 etc.) and I want to create a foreach loop looping through all of them, do I need to create an array out of all the fields or can I use the Kirby collection()
method?
Like:
<?php $fields = $page->collection(fieldname1, fieldname2, fieldname3) ?>
<?php foreach($fields as $field): ?>
<?= $field->kt() ?>
<?php endforeach ?>
Thx for any tips!