Is it possible to check whether there's content in a content block or not? Trouble is I've got a sidebar with a top-image. I only want to show this image if there's content in the sidebar.
I've tried with the following without success
Code: Select all
{ assign var="contentSidebar" value=$content_obj->GetPropertyValue('sidebar') }
{ if $contentSidebar }
<div id="sidebar">
{content block="Sidebar"}
</div>
{/if}