Hi !
I try to apply merge on two collections without success, the “link” field says my function don’t return any pages :
The query :
label: Key(s) Speaker(s)
type: pages
query: kirby.collection('researcher')
subpages: false
image:
back: white
Into collections/researcher.php
<?php
return function ($site) {
$externals = $site->kirby()->users(); //->filterBy('role', 'in', ['editor', 'member']);
$internals = $site->find('researchers')->children();
return new Pages(array($internals,$externals));
};
I try with only $internals
and this work, so i suppose the users is a special case ? :
<?php
return function ($site) {
$externals = $site->kirby()->users(); //->filterBy('role', 'in', ['editor', 'member']);
$internals = $site->find('researchers')->children();
return new Pages(array($internals));
};
I also try $site->kirby()->users()->toArray() without success
I miss something ? or perhaps this is not possible?
Thanks !