Hey.
I have a multiselect for choosing partner to projects. So if I check the output on the frontend I got a string sepertet bei ‘,’ back. So I thougth I could put them to ->toPages().
$field->toPages(string $separator = 'yaml'): Kirby\Cms\Pages
On the doc is written " Can be any other separator to split the field value by"
echo $partner; ->>>>>> partner/XYZ, partner/ABC, partner/DEF, partner/ASD
$partner->toPages()
I know I could do something like that
$items = [];
foreach ($partner->split() as $item) {
$items[] = page($item);
}
But than i got an array back. And what i need is all pages cause i also need to filter them.
Maybe there is a way to keep them as stirng and pass them to ->toPages()?
Best regards