Hello,
I’m using the Solspace Tag Module and i’d like to create a Related Entries list right after an entry. I’m using the folowing code:
<div>
Related Entries:
<ul>
{exp:tag:related_entries weblog="blog" orderby="date" sort="desc" dynamic="off"}
<li><a href="http://www.mywebsite.com/blog/comments/{url_title}">{title}</a></li>
{/exp:tag:related_entries}
</ul>
</div>
Is there a way to have the title (Related Entries:) displayed only in case there are related entries? Also if there are no entries the unordered list is left with no list items and the page (XHTML) doesn’t validate.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.