Skip to content

5.2.0

Choose a tag to compare

@medienbaecker medienbaecker released this 10 Jun 10:08
· 4 commits to main since this release

Virtual modules

Module::factory() creates a module from code and renders it with its regular snippet, mirroring Kirby's Block::factory():

echo Module::factory([
  'type' => 'text',
  'content' => ['textarea' => 'Hello from code']
])->toHtml();

Modules::factory() is the plural equivalent.

Forgiving type names

templates, templatesIgnore and default now accept both text and module.text, so you no longer need to remember which form goes where.

Fixes

  • max and min now work more reliably
  • Changing a module's type now respects custom content file extensions