Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • karthikeyan 9 posts 29 karma points
    Dec 06, 2012 @ 07:57
    karthikeyan
    0

    TagCloud in UKnowledgeBase

    <xsl:template match="/">
            <div class="tagcloud">
                <p>
                <xsl:for-each select="tagsLib:getAllTags()/tags/tag">
                    <xsl:sort select="." order="ascending"/>
                    <a href="{umbraco.library:NiceUrl($currentPage/ancestor-or-self::node [@nodeTypeAlias = 'KeywordstoSearchUpon']/@id)}?filterby={.}">
                        <xsl:attribute name="class">
                            <xsl:choose>
                                <xsl:when test="@nodesTagged &gt; 5">
                                    <xsl:value-of select="string('tagweight5')"  />
                                </xsl:when>
                                <xsl:otherwise>
                                    <xsl:value-of select="concat('tagweight',@nodesTagged)"/>
                                </xsl:otherwise>
                            </xsl:choose>
                        </xsl:attribute>
                        <xsl:value-of select="."/>
                    </a>
                    <xsl:text> </xsl:text>
                </xsl:for-each>
                </p>
            </div>

        </xsl:template>

    Ayone Trying to do this. I am stuck on this for a while

Please Sign in or register to post replies

Write your reply to:

Draft