Hi,
i try to get all related pages to the page i am editing.
In PHP it would be something like this:
$page->children()->filter(function($child) use($page) {
return $child->related()->toPages()->has($page);
});
But how can i use this in the blueprint yml?
This of course won’t work:
exposes:
label: Exposes
type: pages
query: kirby.page("exposes").children.filter(function($child) use($page) {return $child->building()->toPages()->has($page)})
size: small
Thx in advance.