Skip to content

Kirby Modules 2.2.0

Compare
Choose a tag to compare
@medienbaecker medienbaecker released this 07 Jan 08:50
· 52 commits to master since this release

Thanks to @pedroborges you can now use the modules() method in two different ways:

  1. Iterate over the modules collection
<?php foreach($page->modules() as $module): ?>
<!-- Do something with the module -->
<?php endforeach ?>
  1. Return all the modules like you can also do with renderModules()
<?= $page->modules() ?>