How to change path to module templates
- kevin.waterson@gmail.com
- Member | 81
Currently, my BlogModule is looking for templates in the path:
app/BlogModule/templates/Blog/default.latte
I would like this path to be:
app/BlogModule/templates/default.latte.
I assume this needs to be change/overwritten in the config.neon file.
What needs to be in the config.neon file to change the template dir path?
Thanks
Kevin
- kevin.waterson@gmail.com
- Member | 81
A little more poking about, and I found function
formatLayoutTemplateFiles()
So, I tried to overide the parent, and the function is called, however, does
not change the layout template in any way.
- kevin.waterson@gmail.com
- Member | 81
So.. to override I basically had to copy the formatLayoutTemplateFiles() method from the parent.
Surely there is an easier way to change the layout template location.
Thanks,
Kevin
- kevin.waterson@gmail.com
- Member | 81
Awesome, thanks.
Solution for anybody following is this:
Sets the layouts to app/layouts/common.latte