Much like the EE docs for templates, I have a template with a layout, and that layout itself has a layout. Yet when I try to run it, I get this message:
Plugin or module tag found before layout declaration. Please move the layout tag to the top of your template.
This setup was working in 2.8.1.
For testing purposes this is the general idea:
{!-- site/page.html --}
{layout="site/_page_layout.html"}
Ohai
{!-- site/_page_layout.html --}
{layout="site/_layout.html"}
Page says {layout:contents}!
{!-- site/_layout.html --}
<blockquote>"{layout:contents}"</blockquote>Thanks, John. I ran into this too, I think it happens if your template has no {exp: tags in it. Try this fix and see if it works:
Open system/expressionengine/libraries/Template.php, find this code on line 585:
if ($tag_pos > $first_tag)And REPLACE it with this:
if ($tag_pos > $first_tag && $first_tag !== FALSE)Thanks for your reports lately!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.