I would like to have a section with related articles and use related links xslt. it would be nice to have a header above 'Similar articles" but I would it to appear only if there are some links. Is there any easy way to check if there are any links and display heading only when there are?
Check if there are related links
Hi guys,
I would like to have a section with related articles and use related links xslt. it would be nice to have a header above 'Similar articles" but I would it to appear only if there are some links. Is there any easy way to check if there are any links and display heading only when there are?
rgs,
Pawel
Hey. Are you using xslt?. Well all you need to do is look wether you have links in the releated item field. Something like
<xsl:choose>
<xsl:when test="$currentPage/yourRelatedLinkField/links/link != ''>
DISPLAY HEADER
</xsl:if>
<xsl:otherwise>
DONT DISPLAY HEADER
</xsl:otherwise>
Hope this helps. Charlie :)
is working on a reply...