I thought it would be easy and it probably is but still i would like to ask for your help since i am sitting here for ours aaah, what do i wrong? i just want to loop the 2 text fields.
this is my .yml
sections: Text: type: fields fields: team: label: Teammember type: structure fields: role: label: Rolle type: text name: label: Name type: text
<?php foreach($page->team()->toStructure() as $member): ?> <?= $member->role()->kirbytextinline() ?> <?= $member->name()->kirbytextinline() ?> <?php endforeach ?>
Thx in advance,