Is it possible to create collection of pages from multiselect field?
Blueprint
populargames:
label: Popular Games
type: multiselect
options: query
query: site.find(‘games’).children
How do I try to create collection
<?php $populargames = $page->populargames()->toPages(); ?>
<?php foreach($populargames as $populargame): ?>
When $page->populargames()->toPages();
is only one item it is works, if more that one no
Is there any quick solution for this?