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
Hi,
I am working on an XSLT macro that displays the tags of a certain blog post and I get this:
System.FormatException: Input string was not in a correct format.
when I use this:
<xsl:variable name="tags" select="tagsLib:getTagsFromNode(@id)" />
Anyone got any idea why? The exact same code seems to work on another XSLT that lists the blog posts on the homepage.
Hi Alexandru,
That's very likely because of the @id being empty - context is important, especially in Umbraco XSLT (I've tried to explain it here) - usually you just need to add $currentPage to get the right context:
<xsl:variable name="tags" select="tagsLib:getTagsFromNode($currentPage/@id)" />
/Chriztian
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Tags Macro
Hi,
I am working on an XSLT macro that displays the tags of a certain blog post and I get this:
when I use this:
Anyone got any idea why? The exact same code seems to work on another XSLT that lists the blog posts on the homepage.
Hi Alexandru,
That's very likely because of the @id being empty - context is important, especially in Umbraco XSLT (I've tried to explain it here) - usually you just need to add $currentPage to get the right context:
/Chriztian
is working on a reply...