Copied to clipboard

Flag this post as spam?

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


  • Bizzie 7 posts 27 karma points
    Aug 23, 2011 @ 17:28
    Bizzie
    0

    Navigation & URLs for Noob

    Hi

    I’m a new Umbraco user and have been playing around with it for a few days and so far I love it! I’m now eager to change an existing website to use Umbraco and would like to keep the existing URLs as far as I can.

    It’s a travel website and so far in Umbraco I have a topNav of Continent with sidebar subNav of Country (subNav1, subNav1.1), Region (subNav2, subNav2.1). When I create my country pages under their Continent categories my sub navigation is great but my URLs are too long and will be different to the current site but when I create the country pages as top level my subNav isn’t good.

    In short, is there a way to create my pages in their correct continent category but change the URL from www.mysite/continent/country/region to www.mysite/country/region or have a got a lot more learning to do with XSLT or should I create a different template for each continent page so it renders the correct subNav?

    I hope my ramblings make sense and any advice would be appreciated.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 23, 2011 @ 17:35
    Dirk De Grave
    0

    Hi Bizzie,

    Depending on your content tree structure (which i can't tell from your post above), you could do two things:

    • - set umbracoHideTopLevelNodeFromPath to true, so /continent will not be in your url's
    • - use umbracoAlias property on your country pages and set that to 'country', no leading '/', nor suffix 'aspx' in case you're not using directory url's

    you'll probably have to change your xslt for your navigation as well, so show us some of your code (and maybe a screenie of your content tree) so we can help at best.

     

    Cheers,

    /Dirk

  • Bizzie 7 posts 27 karma points
    Aug 23, 2011 @ 21:33
    Bizzie
    0

    Hi Dirk

    Thank you so much for a quick reply.

    Could you explain your two options in more detail (I couldn't find how to do either of them).

    My structure so far:

    I like the idea of organising the pages under their continent (nice and tidy) but I'd rather the urls not include the continent.

    I'd like to try your suggestions but I couldn't find where to 'set umbracoHideTopLevelNodeFromPath to true', or how to 'use umbracoAlias property on the country pages'. I'm slowly working my way through the videos and I'm sure it will all make sense soon but for now I feel a little out of depth.

    My 3 subNavs are below.

    1stLevelNavigation

    2ndLevelNavigation

    3rdLevelNavigation

Please Sign in or register to post replies

Write your reply to:

Draft