[SOLVED] Checking for empty content block (conditions in templates)
Posted: Fri Aug 01, 2008 10:28 pm
I would like to make a section of my template conditional, i.e., based on the presence of content. I know I can do something like this to check for values in $content:
But what are the parameters for the empty() function if I am checking for the presence/absence of another named content block (like when I use {content block='promo'}?
Thanks!
Code: Select all
{if !$empty($content)}
<div>
blah blah
</div>
{/if}
Thanks!