Is it possible to check if block has a content?

6 years ago

medhi
Bronze Partner | 189
+
0
-

I need to check, if a block has a content. I know, I can check if a block exists (ifset #block), but if exists, it's crucial for me to know, if it has any content. Is it possible?

6 years ago

Robyer
Member | 74
+
0
-

Right now I use workaround:

{capture $block}{include #block}{/capture}
{if $block}...{/if}

But I'd like to know if there is better solution :-)