Hello, I’m using the Kirby List Field inside of the Kirby Engineer Field. With the code I have written, if I put more than one item in the list field the output is “projects/example-project-1 yaml”. Putting just one list item outputs the correct content. What am I doing wrong here?
<?php foreach($page->projectteam()->toStructure() as $member):?> <div class="team-entry"> <?= $member->role()->esc() ?> </div> <div> <?php foreach($member->name()->yaml() as $name): ?> <?= $name ?> <?php endforeach; ?> </div> <?php endforeach ?>
projectteam: label: Project Team type: engineer fields: role: label: Collaborator Role type: text width: 1/2 name: label: Collaborator Name type: list placeholder: Add a collaborator width: 1/2