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 there,
Could someone please help me out with my umbraco xslt and fill in the href="" how do i make my randomly selected node a link! thank you very much..
<a href=""><xsl:value-of select="$quoteNodeSet[position() = $random]/@nodeName" disable-output-escaping="yes"/></a>
Hi hssdev,
In the 'href' of the link, you'd need to use the "NiceUrl" function from the "umbraco.library". However since you are trying to access a random node, it's probably best to store the node in a variable, like so:
<xsl:variable name="randomNode" select="$quoteNodeSet[position() = $random]" /> <a href="{umbraco.library:NiceUrl($randomNode/@id)}"> <xsl:value-of select="$randomNode/@nodeName" disable-output-escaping="yes"/> </a>
Then you can access the random node multiple times.
Cheers, Lee.
wonderful, thank you so much
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Making my node a link
Hi there,
Could someone please help me out with my umbraco xslt and fill in the href="" how do i make my randomly selected node a link! thank you very much..
<a href=""><xsl:value-of select="$quoteNodeSet[position() = $random]/@nodeName" disable-output-escaping="yes"/></a>
Hi hssdev,
In the 'href' of the link, you'd need to use the "NiceUrl" function from the "umbraco.library". However since you are trying to access a random node, it's probably best to store the node in a variable, like so:
Then you can access the random node multiple times.
Cheers, Lee.
wonderful, thank you so much
is working on a reply...