Copied to clipboard

Flag this post as spam?

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


  • Chris van Dam 15 posts 27 karma points
    May 01, 2009 @ 13:15
    Chris van Dam
    0

    umbracoUrlAlias rules! (If you get it to work :))

    Hi all!

    I am trying to create a multilanguage site that functions logical, while also maintaining a clean structure. What I would like to have is the following structure :

    Content
    + Home [NL]
    | + News Section
    | - \ News Item 1
    | | Separate Page
    | \ Last Page
    + Home [EN]
    - + News Section
    - - \ News Item 1
    - |Separate Page
    - \ Last Page


    I tried to give the Home nodes the umbracoUrlName of 'nl' and 'en', but that makes their own url nl.aspx and en.aspx. I'd like to change that to /nl/home.aspx and /en/home.aspx, but I can't get ANY umbracoUrlAlias to work on the Home nodes. It does work for the lower nodes.

    How is this possible?

    Hope anyone can help...


    Chris

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 01, 2009 @ 13:59
    Dirk De Grave
    0

    Hi Chris,

    Did you try to enter nl/home and en/home as umbracoUrlAlias?
    umbracoUrlAlias doesn't change the url, it's just another url to getting to the page!
    If you need to permanently change the url, you'd need umbracoUrlName
    Also, have a play with the umbracoHideTopLevelPath settings in web.config.

    Cheers,
    /Dirk

  • Chris van Dam 15 posts 27 karma points
    May 01, 2009 @ 14:56
    Chris van Dam
    0

    Hi Dirk,

    thanks for taking time to look into this. Yes I entered a number of things as the umbracoUrlAlias, i.e. en/home, but also home-en and stuff like that. It doesn't work on the root nodes, but it does work on nodes below that.

    I have set the umbracoHideTopLevelPath to false, because I need that to give all subnodes the language prefix. I hope that doesn't originates this problem.

    I have made a couple of urlRewrite rules to rewrite the en/default.aspx to en.aspx, so I am able to reference the pages as I want now, but I still don't understand why I cannot get the urlAliases to work....:-k



    Chris

Please Sign in or register to post replies

Write your reply to:

Draft