<?php // Page number of the paginator, the first page is 1 $pageNumber = 1; // The value -1 tell to Bludit to returns all the pages on the system $amountOfItems = -1; // Only get the pages with the satus published $onlyPublished = true; // Get the list of keys of pages $pages = $dbPages->getList($pageNumber, $amountOfItems, $onlyPublished);
foreach ($pages as $pageKey) {
// buildPage function returns a Page-Object
$page = buildPage($pageKey);
echo $page->title();
}
?>