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
For some reason ive just published a new page and the links generatd to the page from xslt files are incorrect. ie
<xsl:variable name="n" select="umbraco.library:GetXmlNodeById(8608)" />
<a href="{umbraco.library:NiceUrl($n/@id)}">s</a>
this sends me to /products.aspx when it needs to go to /news/must-have-lip-cream-coming-soon.aspx. when i do this:
<xsl:value-of select="umbraco.library:NiceUrl($n/@id)" />
the link written out is correct. I JUST DONT UNDERSTAND!? Can anyone help?
Hi Phil,
Seems very strange! Could you try this?
<a href="{umbraco.library:NiceUrl(8608)}">link</a>
I'm hoping that it returns the "/news/must-have-lip-cream-coming-soon.aspx" URL.
It's worth checking if you have another property on the document called "umbracoAlias" - as that might have been set to "products"? - but that's just a wild guess!
Cheers, Lee.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
niceurl produces wrong url
For some reason ive just published a new page and the links generatd to the page from xslt files are incorrect. ie
<xsl:variable name="n" select="umbraco.library:GetXmlNodeById(8608)" />
<a href="{umbraco.library:NiceUrl($n/@id)}">s</a>
this sends me to /products.aspx when it needs to go to /news/must-have-lip-cream-coming-soon.aspx. when i do this:
<xsl:variable name="n" select="umbraco.library:GetXmlNodeById(8608)" />
<xsl:value-of select="umbraco.library:NiceUrl($n/@id)" />
the link written out is correct. I JUST DONT UNDERSTAND!? Can anyone help?
Hi Phil,
Seems very strange! Could you try this?
I'm hoping that it returns the "/news/must-have-lip-cream-coming-soon.aspx" URL.
It's worth checking if you have another property on the document called "umbracoAlias" - as that might have been set to "products"? - but that's just a wild guess!
Cheers, Lee.
is working on a reply...