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.
This PR adds a
hasModules
page method that can detect if the page blueprint contains amodules
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 themodules
section is loaded on the panel.