medienbaecker / kirby-modules

Plugin for modular Kirby websites
MIT License
73 stars 7 forks source link

Possibility to define modules per section #44

Closed tan3ot closed 3 months ago

tan3ot commented 3 months ago

It would be great to define possible modules in blueprint sections e.g.

modules:
  type: modules
  modules:
    - text
    - images
    - quote

Or have I overlooked something? Is that already possible?

medienbaecker commented 3 months ago

That's already possible. The modules plugin automatically populates the create option for the pages section, but you can overwrite it. Make sure to add the module. prefix to the options.

modules:
  create:
    - module.text
    - module.images