Copied to clipboard

Flag this post as spam?

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


  • Elin Tjhai 5 posts 25 karma points
    Mar 28, 2010 @ 00:00
    Elin Tjhai
    0

    Change the default URL set by Umbraco

    Hello,

    I'm new to umbraco and would like to ask how to change the url link (link to document) to custom url. For example, from test/test1.aspx to umbracotest.aspx.

    Also, can we use the official EXSLT in umbraco?

    Thanks

  • jc 64 posts 101 karma points
    Mar 28, 2010 @ 05:08
    jc
    1

    You can set a property on the DocumentType called "umbracoUrlName" that will allow you to set the URL for the page. Check out this link for details and some other related properties you can set.

    http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlname

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    Mar 28, 2010 @ 08:03
    Casey Neehouse
    0

    Elin,

    As jc stated, you have the umbracoUrlName property to override the nodeName based url name.  This is only good for this document's segment.  

    There is also the umbracoUrlAlias property that will resolve incoming requests to the full root based url string (no domain).  NiceUrl does not render out with this property, but, in XSLT and controls, you can check to see if the property is set and render it in place of NiceUrl.  

    The biggest problem is pages linked in templates and RTE with {localLink:xxxx} will only use the NiceUrl version.  You can either hard code them, or write your own handlers to modify the core.

    A modified Request Handler (http module?) and some other slickness could possibly get this to work.  (I wish NiceUrl and the Request handler (page lookup portion) were provider based.. )

  • Elin Tjhai 5 posts 25 karma points
    Mar 28, 2010 @ 09:50
    Elin Tjhai
    0

    Hi Jc and Casey,

    Thanks for the quick solution and it works great. First of all, I would like to ask if  there is any documentation that has the list of all umbraco property that we can use, as in this example umbracoUrlName and umbracoUrlAlias.

    Thanks

    Elin

     

  • amunk 17 posts 32 karma points
    Mar 28, 2010 @ 11:18
    amunk
    0

    Hi Elin,

    Check out this Wiki section: http://our.umbraco.org/wiki/reference/umbraco-best-practices

    Regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft