Depending on the existence of a list or the fact that this list is not empty I want to have a shown or not. My code:
<#if EventPictures.getSiblings()?has_content>
<section class="more grid">
<#list EventPictures.getSiblings() as cur_EventPictures>
<#if cur_EventPictures.getData()?? && cur_EventPictures.getData() != "">
<div class="more-content">
<div class="strcontainer">
... Fill the content
</div>
</div>
</#if>
</#list>
</section>
</#if>
Even there is nothing in EventPictures, the section, including the divs, is still shown although there is no content. The Freemarker code is used in Liferay. Why is this not working?