I have an ajax page which I created with a route. Therefor it’s not a “normal” page. It’s like a virtual page.
I use this to get my $pages
object:
$pages = kirby()->site()->pages();
Then I use a snippet where I put the page object:
$out .= snippet(
'items',
array(
'pages' => $pages,
),
true
);
Question
Can I use a page model in this case? How? It’s not a real page.