Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I want to test for the presence of related links. If there are related links present, a title should be rendered.
I tried this Xslt statement, but it doesn't work:
<xsl:if test="string-length(currentPage/* [name() = propertyAlias]/links/link) > 0"> <h2>Related links</h2> </xsl:if>
Can someone help me with this?
Thanks,
Anthony Candaele
[name() = propertyAlias]
did you change propertyAlias to your specific alias that you are using for you related links document parameter?
:-)
Hi Mike,
yes I did
greetings,
Anthony
Just had a look at some of my xslt...
<xsl:if test="count($currentPage/relatedItems/links/*) > 0">
that's what I have...
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
testing for presence of related links
Hi,
I want to test for the presence of related links. If there are related links present, a title should be rendered.
I tried this Xslt statement, but it doesn't work:
<xsl:if test="string-length(currentPage/* [name() = propertyAlias]/links/link) > 0">
<h2>Related links</h2>
</xsl:if>
Can someone help me with this?
Thanks,
Anthony Candaele
did you change propertyAlias to your specific alias that you are using for you related links document parameter?
:-)
Hi Mike,
yes I did
greetings,
Anthony
Just had a look at some of my xslt...
<xsl:if test="count($currentPage/relatedItems/links/*) > 0">
that's what I have...
is working on a reply...