I’m struggling to get a user collection to work. I can see that I’m pulling x number of records but I cant get any of the data to display? Kirby 5.4.4.
<?php
return function ($users) {
return $users->filterBy('role', 'member');
};
Collections / members.php
<?php foreach($kirby->collection('members') as $member): ?>
<ul>
<li><?php $member->name()->html() ?></li>
<li><?php $member->aka()->html() ?></li>
</ul>
<?php endforeach; ?>
Template / board.php
Result
