medienbaecker / kirby-modules

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

❓ Easy way to limit module creation to certain templates in parent blueprint? #32

Closed hariom147 closed 2 years ago

hariom147 commented 2 years ago
modules: 
  templates: myTemplate

doesn't seem to work. Is there an easy way of adding this?

medienbaecker commented 2 years ago

You can add a create option to limit it to certain templates:

modules:
  type: modules
  create:
    - text
    - images
hariom147 commented 2 years ago

Thank you @medienbaecker . Didn't find this in the documentation - or did I miss it? How can I learn about all possible props?

medienbaecker commented 2 years ago

There's this list of properties for the pages section: https://getkirby.com/docs/reference/panel/sections/pages#section-properties

hariom147 commented 2 years ago

There's this list of properties for the pages section: https://getkirby.com/docs/reference/panel/sections/pages#section-properties

Thanks a lot!