I want to NiceUrl(@id) return idvalue.aspx, how should I do?
because google can't collect double byte character. so I must use id as url, I hope there is a switch to turn on or off the function that use nodeName as url.
If I understand your question correctly you don't need to use the NiceUrl() extension to return links, which is using the id value instead of the textbased url.
you simply just need to have this in your link....<a href="{@id}.aspx>yourlink</a>.
That's all you need to do - however I don't quite get why you'll want to use the id numbers to show the pages.
I want to NiceUrl(@id) return idvalue.aspx, how should I do?
because google can't collect double byte character. so I must use id as url, I hope there is a switch to turn on or off the function that use nodeName as url.
Hi,
You can't. however instead of umbraco.niceurl(@id) you could simple write /@id.aspx. But this is very bad for SEO.
Cheers,
Richard
Hi Sun
If I understand your question correctly you don't need to use the NiceUrl() extension to return links, which is using the id value instead of the textbased url.
you simply just need to have this in your link....<a href="{@id}.aspx>yourlink</a>.
That's all you need to do - however I don't quite get why you'll want to use the id numbers to show the pages.
/Jan
Argh, I'm too slooow! :)
/Jan
is working on a reply...