Hi,
I have a pages object, which I am getting like so:
$venues = $site->find('venues')->children()->listed();
I now need to check if a specific page is in there, given the page’s UUID. I have the id like this:
$id = L7nf64Oo5rmgi0Y3
I have tried the following, with an $id
that is present:
if($venues->has($id)):
echo 'this page is in there';
else:
echo 'no page with that id here';
endif;
But I am getting the “no page” message. I may be going about this wrong, would anyone have any pointers on this?
Thanks