This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

miller
miller

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

daftspunky
daftspunky

{% include %} is a Twig templating syntax. October uses its own syntax with {% partial %}.

miller
miller

I'm talking about {% extends %} function.

mailbox9535
mailbox9535

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.

miller
miller

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.

mailbox9535
mailbox9535

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...

contact12663
contact12663

I have the same issue :(

1-7 of 7

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.