getChild('BookmarksList'); // Get the Pager from the page (id from template is 'pagenav') $Pager = & $Page->getChild('pagenav'); // Prepare the paged dataset $Bookmarks = & DBC::NewPagedRecordSet('SELECT * FROM bookmarks ORDER BY name', $Pager); // Pass the bookmarks dataset to the list $List->registerDataSet($Bookmarks); // Display the page $Page->display(); ?>