Hi all
I often find myself with a code block like this
<div id="calendar">
<a href="http://{path=%27events/index%27}" class="right">See all</a>
<h3>Upcoming events</h3><p> <br />
<ul><br />
{exp:channel:entries channel="events" sort="asc" show_expired="no" show_future_entries="yes" limit="3" dynamic="off"}<br />
<li> <br />
<span class="calendar"> <br />
<span class="month">{entry_date format="%M"}</span> <br />
<span class="day">{entry_date format="%d"}</span> <br />
</span> <br />
<em>{entry_date format="%d. %F %Y"}</em> <br />
<a href="http://{page_url}">{title}</a> <br />
</li><br />
{/exp:channel:entries}<br />
</ul> <br />
</div>Now if there are no upcoming events, the list is just blank. But if the list is blank I actually don’t want to display anything. What is the best way to achieve that?