How to hide a block when it has no contents?

Posted by Madfish on 1423810094
Is there a way that I can make a block hide itself if it has not contents? Say I have a 'recent articles' block, which can be filtered by tag. For some tags, there are no articles, but the title of the block still displays.

What I would like to happen is, if there is no content in a block, it does not display the block title or anything else. It just doesn't display.

I've tried setting $block['title'] = '', or not returning $block, but the title still shows up.

Any ideas?

This Post was from: https://www.impresscms.org/iforum/viewtopic.php?topic_id=5680&post_id=49687