We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace Tag Module - Related Entries

Development and Programming

nikos72's avatar
nikos72
5 posts
17 years ago
nikos72's avatar nikos72

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.