How to not display section if no content available

Hi, I’m trying to not display a section if no content is available. For this I configured a looper provider an tried to find a working condition. Whatever I try, I’m not successful. How can I achieve what I want?

Explanation: The first section “Aktuelles” shall only be displayed if at least one post ist published in the category “Allgemein”. I want the whole section not to be displayed because ist has a separator which extends into the section below it.

Would appreciate your help.

Hello @jfromm,

Thanks for writing in!

You can use the {{dc:looper:count}} != 0 as your condition.

This condition will hide the whole section when there are no results in the Looper provider.

Best Regards.

Thanks @ruenel, this works as supposed to.

You’re welcome, @jfromm.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.