Copied to clipboard

Flag this post as spam?

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


  • Nick Portelli 76 posts 102 karma points
    Oct 02, 2010 @ 18:17
    Nick Portelli
    0

    RSS links not showing up. And tag cloud xslt error

    I'm using one of the themes from the theme selector and I see the macro for installing the RSS feed links is in the template, but they do not render to the html.  Ok they render as link tags in the html but don't show on screen.

     

     

    <li id="rss">
     <link href="/blog/rss.aspx" rel="alternate" type="application/rss+xml" title="RSS Feed" /><link href="/blog/commentrss.aspx" rel="alternate" type="application/rss+xml" title="Comments RSS Feed" /><link href="/blog/2010/10/1/my-new-blog/commentrss.aspx" rel="alternate" type="application/rss+xml" title="Comments RSS Feed for My new blog" />
     </li>

    I assumed I would see at least a text heading for the feed, is my assumption wrong?  If so can someone give me a quick example of how to add perhaps an image and link to the feeds?  I'm just getting back into the web dev stuff, my css is rusty...my xslt I think I burned out of my mind ages ago.

     

     

    Also I tried adding a tag cloud macro.  I just get an error in the page saying it cannot find it.  Yet it exists.  

     

  • Jeff Grine 149 posts 189 karma points
    Oct 04, 2010 @ 17:34
    Jeff Grine
    0

    The tag cloud xslt for 4.5 has an extra character at the end of the file. You can see it and delete it if you open the file in notepad.

  • Nick Portelli 76 posts 102 karma points
    Oct 04, 2010 @ 20:43
    Nick Portelli
    0

    Cool thank you.  Am I misinterpreting what the rss links do?  Should they display anything?

  • Jeff Grine 149 posts 189 karma points
    Oct 04, 2010 @ 20:51
    Jeff Grine
    0

    Most browsers will pick up the link tag and give you an icon somewhere, so should be good enough. If you want to put your own icon on the page to link to the feeds, then you can just use the same href that is generated in the link tag. But if you want it all dynamically generated the way the link tags are, you'll have to dig into the xslt a bit.

  • Nick Portelli 76 posts 102 karma points
    Oct 04, 2010 @ 21:33
    Nick Portelli
    0

    Ya I'm using Chrome, it doesn't show RSS icons.  And that is what I figured.  Looks like I'll have to edit the xslt anyway, I want full text rss.  Thank you.

  • Shannon 148 posts 171 karma points
    Nov 08, 2010 @ 22:26
    Shannon
    0

    I am having an issue with the BlogTagCloud. When I run the "Visualize XSLT", it works fine. When I try to save it or use the macro in a webpage I get the following error:

     

    System.OverflowException: Value was either too large or too small for an Int32.
    at System.Convert.ToInt32(Double value)
    at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
    at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType)
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)


    version="1.0" encoding="UTF-8"?>
    DOCTYPE xsl:stylesheet [
        ENTITY nbsp " ">
    ]>
    <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 > 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>
  • Jeff Grine 149 posts 189 karma points
    Nov 08, 2010 @ 22:37
    Jeff Grine
    0

    If the error is just when you save in the admin, then you can check the box to ignore it. If you're getting it on your page, then you're probably passing a bad value into a function expecting an int (NiceUrl). But then the visualize feature should not work with that same page.

  • Shannon 148 posts 171 karma points
    Nov 08, 2010 @ 23:49
    Shannon
    0

    When I render it on the website I get:

    Error parsing XSLT file: \xslt\BlogTagcloud.xslt

    I'm not passing any vaules but is there a doc on how to use the BlogTagCloud?

  • Shannon 148 posts 171 karma points
    Nov 08, 2010 @ 23:56
    Shannon
    0

    GRRRR.. I figured it out. I was using the tag cloud outside of the location of the blog and theh "currentpage" param name was failing the query. Is there any way to use the Tag Cloud outside of the blog? My structure is like this:

    Home

    ------News(blog section)

     

    I want to place the tagcloud in the home section one level up.

     

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Nov 22, 2010 @ 11:51
    Dan Diplo
    0

    I had the same problem as I used the tagcloud outside of the blog, too. To fix it you can change:

    {umbraco.library:NiceUrl($currentPage/ancestor-or-self::Blog/@id)}?filterby={.}

    to this:

    {umbraco.library:NiceUrl($currentPage/descendant-or-self::Blog/@id)}?filterby={.}
  • 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