Skip to content

6.0.0

Choose a tag to compare

@medienbaecker medienbaecker released this 25 Nov 08:05
· 6 commits to main since this release

Kirby 6

The plugin is now compatible with Kirby 6, modules show up in the live preview, saving checks every module, and Move lets you pick the page itself. Kirby 5 sites stay on 5.x. Thanks to @bastianallgeier for the help (#74)!

Live preview

Type into a module and the live preview shows your changes immediately.

Saving checks every module first

Saving the page still saves all your module changes, but now on the server and in one single request. Every module is checked before anything is saved, and one list names every invalid field in every module:

image

Moving modules

Move opens Kirby's page picker. You pick the page itself instead of its hidden modules container. Only pages with a modules field that takes this type can be selected, and if a page has several, you choose the field:

image

Upgrading from 5.x

  • Kirby 6 and PHP 8.3 to 8.5. Composer keeps Kirby 5 sites on 5.x.
  • Modules is a field now. Your type: modules sections keep working as they are, and you can put the field under fields like any other.
  • Without a label, the label falls back to the field name like any Kirby field (sidebar shows "Sidebar").
  • $module->ownerSection() is now $module->ownerField().
  • The Panel component is now k-modules-field. Update custom Panel CSS that targets .k-modules-section.
  • The create-container route and the modules.published event are gone.

Also new

  • Add and Duplicate are disabled when the field is full, and the server checks max too
  • New anchors follow the blueprint title in the default language, so a German "Zitat" type gets #zitat
  • Opening a page no longer creates an empty modules container
  • A page that only holds modules deletes without typing its title
  • Panel events for your own plugins: modules.load, modules.input, modules.update and modules.merge

Fixes

  • Duplicating a module copies its nested modules and their unsaved changes
  • Moving or deleting a module keeps the other editor's name on their unsaved changes