I want to have the latest modified subpages show up on the parents pages and I saw this code in another similar question in the forum:
function LatestUpdates() {
$parent = DataObject::get_one("Page", "Title = 'Title of the Page');
return DataObject::get("Page", "ParentID = $parent->ID", LastEdited DESC", "",10);
}
My question is, where do I paste this? Into page.ss? And what code should I add to the template to get it to appear?
Thanks for any help!