Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sun 403 posts 395 karma points
    Jan 24, 2011 @ 08:23
    sun
    0

    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.

  • Richard Soeteman 4036 posts 12863 karma points MVP
    Jan 24, 2011 @ 09:02
    Richard Soeteman
    3

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 24, 2011 @ 09:12
    Jan Skovgaard
    1

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 24, 2011 @ 09:13
    Jan Skovgaard
    0

    Argh, I'm too slooow! :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft