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
Can we do this?
<xsl:value-of select="number($currServicePageID)"/><a href="{umbraco.library:NiceUrl($currServicePageID)}"></a>
I have a value on $currentServicePageID which could be possibly string so i converted it to number as NiceUrl takes so but this is not working at all.
Hi,
That should work - what exactly is the problem? Are you getting an error when you try to save?
You might want to add a check to make sure the variable has something in it, ie
<xsl:if test="$currServicePageID > 0"><a href="{umbraco.library:NiceUrl($currServicePageID)}"></a></xsl:if>
Otherwise you can get an error if it's empty or sometimes while saving.
-Tom
Do you receive the error when saving inside Umbraco ?
/Thor
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.
Continue discussion
NiceUrl Issue
Can we do this?
I have a value on $currentServicePageID which could be possibly string so i converted it to number as NiceUrl takes so but this is not working at all.
Hi,
That should work - what exactly is the problem? Are you getting an error when you try to save?
You might want to add a check to make sure the variable has something in it, ie
Otherwise you can get an error if it's empty or sometimes while saving.
-Tom
Do you receive the error when saving inside Umbraco ?
/Thor
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.