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
Hello,
I have a group of tags sitting in a styled div using this code
<xsl:if test="($currentPage/descendant-or-self::*/parent::*[@isDoc and @parentID='4253'])"> <div class="ssnSubNode"><strong>Tag Group Title</strong></div> <ul> <xsl:for-each select="tagsLib:getAllTagsInGroup('tagGroup1')//tag"> <li style="padding:7px 0 0 10px;"><a href="?tag={.}"><xsl:value-of select="."/></a> (<xsl:value-of select="@nodesTagged"/>)</li> </xsl:for-each> </ul><br /> </xsl:if>
Can anyone give me guidance on how i can hide all of the above if there is no tags?
Many thanks,
Gary
Hi Gary,
I must say this is a shot in the dark because I don´t have worked with the tagsLib:getAllTagsInGroup before, but I want to try to help you anyway.
tagsLib:getAllTagsInGroup
<xsl:iftest="$currentPage/descendant-or-self::*/parent::*[@isDoc and @parentID='4253'])"> <xsl:iftest="count(tagsLib:getAllTagsInGroup('tagGroup1')//tag) > 0"> <divclass="ssnSubNode"><strong>Tag Group Title</strong></div> <ul> <xsl:for-eachselect="tagsLib:getAllTagsInGroup('tagGroup1')//tag"> <listyle="padding:7px0010px;"> <ahref="?tag={.}"><xsl:value-ofselect="."/></a> (<xsl:value-of select="@nodesTagged"/) </li> </xsl:for-each> </ul><br/></xsl:if> </xsl:if>
But as I said it´s a shoot in the dark.
/Dennis
Dennis, you are a star! Thank you so much this worked like a charm!!
Much appreciated.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Only show content if tags > 0
Hello,
I have a group of tags sitting in a styled div using this code
Can anyone give me guidance on how i can hide all of the above if there is no tags?
Many thanks,
Gary
Hi Gary,
I must say this is a shot in the dark because I don´t have worked with the
tagsLib:getAllTagsInGroup
before, but I want to try to help you anyway.But as I said it´s a shoot in the dark.
/Dennis
Dennis, you are a star! Thank you so much this worked like a charm!!
Much appreciated.
Gary
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.