Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 18, 2010 @ 18:21
    Jeroen Breuer
    0

    Tagcloud still not working

    Hello,

    I've downloaded the latest changeset from Blog4Umbraco, but the tagcloud still doesn't work.

    This is the xslt file:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [
        <!ENTITY nbsp "&#x00A0;">
    ]>
    <xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary ">
    
    
        <xsl:output method="xml" omit-xml-declaration="yes"/>
    
        <xsl:param name="currentPage"/>
    
        <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::Blog/@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>
    
    </xsl:stylesheet>

    Any idea what might be wrong with this? If I try to get the tag cloud I get "Error reading XSLT file: \xslt\BlogTagcloud.xslt"

    Jeroen

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 19, 2010 @ 09:24
    Jeroen Breuer
    0

    Ok got it fixed because of this tip.

    Jeroen

  • David Dupont 61 posts 115 karma points
    Nov 02, 2010 @ 16:18
    David Dupont
    0

    Thanks it saves me a lot of time.

  • Pinal Bhatt 298 posts 389 karma points
    Nov 24, 2010 @ 22:07
    Pinal Bhatt
    0

    There is some problem with BlogTagcloud.xslt file. I deleted the last line and wrote again and everything was in place.

  • 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.

Please Sign in or register to post replies