richardhj/contao-theme-framework

Storing frontend modules within the Theme Framework

Closed this issue · 2 comments

What's the best way to manage Frontend Modules? I'm considering if it might be a good idea to add the ability to manage these modules to the library?

When contao/contao#5808 gets merged, we finally have a way to use modules without the need to maintain a database. That would be superb indeed 💯

At the moment, I create a frontend module and use the {{ '{{insert_module::1}}' }} or {{ include() }} syntax in Twig most of the time.

You can now write {{ frontend_module(15) }} or {{ frontend_module('faqpage', { ... }) }} to directly embed frontend modules in Twig templates.