$pages->add($page)
Adds a single page object or a collection to a collection
-
$page (mixed)
The id of a page, a page object or a $pages object -
return ($pages)
Examples:
<?php
$collection = page('exhibitions')->children()->visible();
$collection->add('somepage');
?>
```php
<?php
$collection = page('exhibitions')->children()->visible();
$collection->add(page('news')->children()->visible());
?>