Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Extend modular.html.twig in child Quark theme

Started by Pedro Oliveira 7 years ago · 1 replies · 372 views
7 years ago

Hi,

I'm trying to add some code in modular.html.twig - {% block body %} - in my child theme.
But when I add the modular.html.twig with {% extends 'modular.html.twig' %} it results in:
Fatal error : Allowed memory size of 536870912 bytes exhausted...

For what I could gather, this results in a loop hence the memory exhausted.

Is it possible to extend a template from parent to child theme? Or do I have to copy the full template to the child theme?

Cheers!
Pedro

last edited 05/27/19 by Pedro Oliveira
7 years ago

Is it safe to say that there is no way to extend the template directly from parent theme?
For now i copied modular.html.twig to child, but this undermines the inheritence principle, I think.

Still searching...

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago