Copied to clipboard

Flag this post as spam?

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


  • Aileen 59 posts 79 karma points
    Apr 10, 2012 @ 13:33
    Aileen
    0

    UmbracoUrlAlias not working for lower level nodes

    Hi

    I have a doc type which has the property umbracoUrlAlias. My content tree looks something like this:

    Content
     - Uk
        - Homepage
        - About Us
           - Contact Us
        - News

    If I add a url alias for News (e.g. news2) then the alias works. If I add a url alias for Contact Us (e.g. contact-us2) the alias does not work.

    All my alias' are lower case but it looks like any nodes lower down in the tree (i.e. not at the top level) cannot have a url alias. Has anyone else had issues with this?

    Thanks,
    Aileen

  • Daniel Gillett 72 posts 149 karma points
    Feb 18, 2013 @ 22:11
    Daniel Gillett
    0

    I've had this same issue before ...and also couldn't find a way.

    My site wants the ability to have multiple blogs (for example).  And on the backend I wanted to organise these blogs into 1 folder to keep the content tree looking nice (because I have many other doctypes as well).

    So what happens now is that my URLs all have/blogs in the address

    • domain.com/blogs/myblog
    • domain.com/blogs/herblog
    • domain.com/blogs/hisblog

    ...if I use the url alias and then create sub pages, those sub pages do not inherit the parent alias (or it's not recursive?).

    has anyone else got a way around this ...the ulternative appears to be to create the url alias for every single subpage.

    Help!

     

    Thanks,

    Daniel

     

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Feb 18, 2013 @ 22:31
    Chriztian Steinmeier
    0

    Hi,

    I'm pretty sure that the power of this one lies in the name - that it's a URL alias - so you can make the node take over any URL... so you need to provide the full URL (i.e., the path segment) like this:

    startpage,go/first,start-here

    Would answer to all of these:

    • /startpage
    • /startpage/
    • /startpage.aspx
    • /go/first
    • /go/first/
    • /go/first.aspx
    • /start-here
    • /start-here/
    • /start-here.aspx

    Read the Wiki page for it here

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft