Hello! I am a beginner. I hope very much for your help!
I have TourPage and TourHolder. I want to show on the home page of last 6 pages TourPage. I copied the output function of Tutorial2.
function LatestNews($num=6) {
$news = DataObject::get_one("TourHolder");
return ($news) ? DataObject::get("TourPage", "ParentID = $news->ID", "Date DESC", "", $num) : false;
}
I understand there appears dated. How do I change this to select the necessary things to do not by date added, and the ID page in the database?