Skip to content

5.5.4

Choose a tag to compare

@medienbaecker medienbaecker released this 01 Jul 16:03

Combine modules across pages (#64)

$page->modules() now has a plural counterpart. $pages->modules() merges the modules of every page in a collection into one, so you can gather and render the modules of many pages at once:

<?= page('blog')->children()->modules() ?>

It works on any page collection ($pages, $page->children(), $site->index(), …) and takes the same container argument as the singular method.

Thanks to @nilshoerrmann for the suggestion.