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.
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.
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.
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.
Hi Bizzie,
Depending on your content tree structure (which i can't tell from your post above), you could do two things:
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
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
is working on a reply...