medienbaecker / kirby-modules

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

All modules vs selected modules #9

Closed illycz closed 4 years ago

illycz commented 4 years ago

In docs, there is: "Every blueprint starting with module. is available to create". Is it possible to set only some modules? For example I need different modules for homepage and for blogposts.

Thanks

medienbaecker commented 4 years ago

I'm setting the create option of the modules section to all module blueprints automatically: https://github.com/medienbaecker/kirby-modules/blob/master/index.php#L44

Of course you can also use a pages section and set it manually:

modules:
  type: pages
  info: '{{ page.moduleName }}'
  parent: page.find("modules")
  create:
    - module.text
    - module.images