medienbaecker / kirby-modules

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

Improve container folder check #17

Closed pedroborges closed 3 years ago

pedroborges commented 3 years ago

This PR adds a hasModules page method that can detect if the page blueprint contains a modules section even if the section is named something else.

It also changes how the container modules folder is checked. Instead of checking it on every request, including the front-end ones, it only checks it when the modules section is loaded on the panel.