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.
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.
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.
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)
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.
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.
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.
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.
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.
Cool thank you. Am I misinterpreting what the rss links do? Should they display anything?
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.
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.
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>
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.
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?
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.
I had the same problem as I used the tagcloud outside of the blog, too. To fix it you can change:
to this:
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.