This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I have a layout and want to extend some of it's blocks inside another layout.
When i write something like this in layouts/child.htm
{% include '/var/www/myproj/www/themes/mytheme/layouts/default.htm' %}
I get an error:
Maximum function nesting level of '300' reached, aborting!
Last updated
{% include %}
is a Twig templating syntax. October uses its own syntax with {% partial %}
.
I'm having the same problem. Really need to be able to extends the templates, otherwise the system is severely crippled and of no use. From the error log it is evident that Twig is going through an infinite loop. Any help is appreciated.
I've found a solution - you can inject content in layouts by using {% placeholder %} tag. More on this in docs. It's not extendable but may be useful.
Except that using Static Pages plugin (which I'm using and it should've been default functionality IMHO) doesn't allow code editing of its pages. Sigh...
1-7 of 7