I’m building a site using modular pages, and I have come across this problem:
I want to have two modules on the same page use the same template. I read the documentation and came across the “template” header:
http://learn.getgrav.org/content/headers#template
Now, this seems straight forward. I select the template by writing it into the header. Right?
So if I have two different modules, each supposed to use the template “textblock”, then I should just put the following into the header of the modules’ .md files:
template: textblock
However, when I do this, Grav throws an exception:
An exception has been thrown during the rendering of a template (“Template “textblock.html.twig” is not defined ().”) in “modular.html.twig” at line 4.
And, well. There is a textblock.html.twig in the correct place, and it renders correctly as long as I don’t write the template into the header.
Am I missing something? What’s wrong?