This is the code I have in my template. I want to use a conditional to check if there are any entries in the “events” channel. If there isn’t any entries I want to display a paragraph with some text instead of the unordered list. How would I do this?
<h2>Upcoming Events</h2>
<p> <ul><br />
{exp:channel:entries channel="events" disable="categories|member_data" dynamic="off" limit="3" show_future_entries="yes" sort="asc"}<br />
<li><br />
<time class="time_style">{entry_date format="%F %j %Y"}</time><br />
<h1><a href="http://{title_permalink=events/details}">{title}</a></h1><br />
</li><br />
{/exp:channel:entries}<br />
</ul>