Releases: medienbaecker/kirby-modules
Kirby Modules 2.4.1
I added a command for the Kirby CLI: make:module
🎉
Full Changelog: 2.4.0...2.4.1
Kirby Modules 2.4.0
In this release I added two new features 🎉
- There's a new option
medienbaecker.modules.exclude
that lets you exclude certain modules from the "Add page" modal. - Every module blueprint now automatically gets the navigation option that lets you navigate between modules with the arrows.
The exclude option is very handy when it comes to modules like a hero. Combined with a sort: false
option you can make sure there's only one hero module and it can't be moved.
Kirby Modules 2.3.1
In this release I added the version number to the composer.json
Kirby Modules 2.3.0
Features:
- Kirby 3.7 compatibility for the redirect field
- Inline layout with a new plugin: https://github.com/hananils/kirby-modules-inline
- Hidden modules container in the breadcrumb
Thanks @nilshoerrmann for the contribution.
Full Changelog: 2.2.3...2.3.0
Kirby Modules 2.2.3
This release will fix #31 once :has()
support has landed in modern browsers.
Kirby Modules 2.2.2
@schnti noticed an issue with Kirby 3.6 and modules sections in site.yml
. This release should fix the error.
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