Hi everyone. I’m trying to figure out how to loop a set of pages that use 2 different templates, of which one of them has a structured field, the other one is the default template. I managed to create a loop that outputs the kirbytext field of both templates, but any additional fields don’t show up. This is my code.
<?php foreach($page->children()->visible()->filterBy('template', 'in', ['default', 'color']) as $item): ?> <section class="" id="<?= $item->uid() ?>"> <h1><?php echo $item->title() ?></h1> <?= html($item->text()->kirbytext()) ?> </section> <?php endforeach ?>
Super grateful for any help.