Hello,
I’m trying to display “There are no currently no related articles.” when exp:channel:entries returns no results. I can’t get this line to run though when there are no results. Any ideas? I am running the latest version of ee.
HTML:
<h3>Related Entries</h3>
<p> <ul><br />
{exp:channel:entries channel="news" status="Homepage Featured|Homepage Secondary|open" limit="3" related_categories_mode="yes" custom_fields="yes"}<br />
<br />
<br />
{if no_result} <br />
There are currently no related articles.<br />
{/if} <br />
<li class="{switch='first|second|last'}"><br />
<em>{entry_date format="%F %d, %Y"}</em><br />
</p><h4><a href="http://{title_permalink=news/view}">{title}</a></h4>
<p> {news-excerpt}<br />
</li> <br />
{/exp:channel:entries}<br />
</ul>