Releases: medienbaecker/kirby-modules
Kirby Modules 2.2.1
This release makes sure the plugin is compatible with the upcoming 3.6.0 release of Kirby.
Kirby Modules 2.2.0
Thanks to @pedroborges you can now use the modules() method in two different ways:
- Iterate over the modules collection
<?php foreach($page->modules() as $module): ?>
<!-- Do something with the module -->
<?php endforeach ?>- Return all the modules like you can also do with
renderModules()
<?= $page->modules() ?>2.1.1
I added an empty array as a fallback for the modules() method. This way pages without a modules container don't throw an error.
2.1.0
New Features:
- new
renderModule()method for rendering a single module - new
modules()method for returning the modules of a page - Modules without a template (yet) will now be available in the panel
2.0.1
Fixes overwriting the headline and empty parameters for the modules section while still displaying the English fallback for untranslated languages.
Kirby Modules 2.0
New Features 🎉
📁 Put module blueprints and templates in separate folders inside site/modules to easily reuse and share them
💡 Preview draft modules on their respective pages with the native token you get via the panel preview link
🚀 Autopublish modules
🧠 Custom global module models
🌐 Globally translatable headline and empty options
⏪ Backwards compatibility for old modules in site/snippets/modules and site/blueprints/pages
Contributors
Thanks to @iskrisis and @pedroborges for the ideas and pull requests ❤️
0.7.0
0.6.3
There were some additional changes in Kirby 3.4 that prevented the plugin from automatically creating the modules container. It's now fixed.
0.6.2
This release should fix overwriting the parent of a modules section.