pages($data = array())

Helper to build page collections

  • $data (array)
    Array of page URIs or page objects
  • return ($pages)

Example

<?php $collection = pages(array('home', 'blog')) ?>
<?php $collection = pages(array($page, $page->children()->first())) ?>

Is something missing or incorrect? Edit this page on Github…