Hi,
How do I get the data of many pagetypes into one sorted list on the HolderPage?
I tried something like this:
function MyData() {
if(!isset($_GET['start']) || !is_numeric($_GET['start']) || (int)$_GET['start'] < 1) $_GET['start'] = 0;
$SQL_start = (int)$_GET['start'];
$thedata = Dataobject::get(
"Pagetype1 OR Pagetype2 OR Pagetype3",
"`ParentID` = '".$this->ID."'",
"",
"",
"{$SQL_start},2"
);
return $thedata ? $thedata : false;
}
But apparently that didn't work. Has someone tried this before? Or has someone an idea of what to do?