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())) ?>