I’m struggling the whole afternoon and try to solve one issue with modules plugin. I work with 2 multiple module section on 1 page. That means I want use modules for the content area and other modules for so called sidebar area. In the panel everything works quite well and has the structur (like this)
content/
page-a/
_modules/
_sidebar/
default.txt
I want to control the render process now and print the content-modules separately to the sidebar-modules. With $page->modules() i can print only everything, and render() gives me an error. What’s the best way to print multiple module sections on 1 pages?
Hm, I’m a bit surprised that the plugin also fetches the modules from the _sidebar subfolder, because as far as I know, you can only have a single folder that contains submodules
But why can’t you put all modules into one subfolder and give them template names to differentiate them? Or use two subfolders (main and sidebar) as parents with the modules inside them.
I need to separate it to fill them with different modules. If i storage all modules in one subfolder i have to chance the prefix, that i can select different modules. If i don’t do it, a selected module will insert in both module sections.