It's because your'e sending the string '@link' into the NiceUrl() extension - just remove the apostrophes:
<a href="{umbraco.library:NiceUrl(@link)}">This is the link</a>
It's usually also a good idea to check the value first because the extension will fail with the same error if no value is in the @link attribute (which can happen when you save the XSLT in the Backoffice):
<xsl:if test="normalize-space(@link)">
<a href="{umbraco.library:NiceUrl(@link)}">This is the link</a>
</xsl:if>
creating link from parameter
Hi,
Here is the code i have to get create a link from the current node type but am getting the following error!
System.OverflowException: Value was either too large or too small for an Int32.
Thanks in advance for the help
Kelvin
Hi Kelvin,
It's because your'e sending the string '@link' into the NiceUrl() extension - just remove the apostrophes:
It's usually also a good idea to check the value first because the extension will fail with the same error if no value is in the @link attribute (which can happen when you save the XSLT in the Backoffice):
/Chriztian
Hi,
I still get the error. Also when i try the <xsl:iftest="normalize-space(@link)"> nothing is displayed
Am i calling the link parameter correctly?
Thanks
Kelvin
Ah - no, sorry :-)
I thought you were using a Related Link datatype
Replace @link with $link and you'll be good to go.
/Chriztian
Great Thanks for that!
is working on a reply...