Is it possible to do something like the following (which doesn't work).
{if layout:contents}
{layout:contents}
{if:else}
404!
{/if}
thanks!
:: ed
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this community{layout:contents}
is no regular layout variable (it will always contain the entire contents of the template in which the {layout="template_group/template"}
tag appeared), which is why I suspect your code sample doesn't work.
But all other layout variables should work just fine as conditionals, as in your code sample.