Skip to content

Releases: medienbaecker/kirby-modules

Kirby Modules 2.4.1

01 Dec 13:56
Compare
Choose a tag to compare
Kirby Modules 2.4.1 Pre-release
Pre-release

I added a command for the Kirby CLI: make:module 🎉

Full Changelog: 2.4.0...2.4.1

Kirby Modules 2.4.0

23 Nov 09:57
Compare
Choose a tag to compare

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

21 Nov 13:53
Compare
Choose a tag to compare

In this release I added the version number to the composer.json

Kirby Modules 2.3.0

27 Jun 20:18
Compare
Choose a tag to compare

Features:

Thanks @nilshoerrmann for the contribution.

Full Changelog: 2.2.3...2.3.0

Kirby Modules 2.2.3

25 May 15:11
Compare
Choose a tag to compare

This release will fix #31 once :has() support has landed in modern browsers.

Kirby Modules 2.2.2

18 Nov 09:11
Compare
Choose a tag to compare

@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

30 Sep 13:21
Compare
Choose a tag to compare

This release makes sure the plugin is compatible with the upcoming 3.6.0 release of Kirby.

Kirby Modules 2.2.0

07 Jan 08:50
Compare
Choose a tag to compare

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() ?>

2.1.1

04 Nov 22:30
Compare
Choose a tag to compare

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

22 Oct 06:08
Compare
Choose a tag to compare

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