Hi there
I'm trying to get automatically an array of pages id (in ex. 29,38):
function GetCategoryNews() {
$holderid = DataObject::get("NewsHolder","ParentID = $this->ID");
...
$doSet = DataObject::get(
$callerClass = "NewsPage",
$filter = "`SiteTree`.ParentID IN (29,38)",
$sort = "Date DESC",
$join = "",
$limit = ""
);
return $doSet ? $doSet : false;
}
Maybe someone has an example how to get an array of pages ID or can help with this?
Best regards
Mindaugas