Is it possible to do something like the following (which doesn't work).

{if layout:contents}


:: ed

1 Answer 1


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.