I have an issue with the urls for a site - I'm not sure if this is possible, but I'll ask anyway...
I'm trying to severely limit what the client will be able to do with the site, so I have created two "container" document types to hold the pages in the top menu navigation and bottom navigation.
An alternative would be to add a property in your Document Type, which defines wether it should be rendered as top or bottom. Then cut out the two menus in the structure. (ie. add a true/false property with the name "Show in bottom menu")
I had considered this Kristian and this was the way I did it initially, but I need the menus in the structure so that the client can easily differentiate the two visually.
You can do this by using URL rewriting to replace "top-menu" and "bottom-menu". I'm not familiar with the url rewriting config, but search for it here or on Google, you should be able to fix this fairly easily.
URL without directory name possible?
Hello,
I have an issue with the urls for a site - I'm not sure if this is possible, but I'll ask anyway...
I'm trying to severely limit what the client will be able to do with the site, so I have created two "container" document types to hold the pages in the top menu navigation and bottom navigation.
So the structure I have is:
Content
- Pages
- Top Menu
- Home
- Another Page
- etc.
- Bottom Menu
- Sitemap
- Another Page
- etc.
All works nicely for my needs.
What I would like to do is configure the URLs so that instead of seeing http://mydomain.com/top-menu/home and http://mydomain.com/bottom-menu/sitemap users just see http://mydomain.com/home and http://mydomain.com/sitemap
Is there a way I can do this in Umbraco (I'm using 4.0.3 on IIS 6, Windows Server 2003 BTW)
Many thanks in advance,
Olly
An alternative would be to add a property in your Document Type, which defines wether it should be rendered as top or bottom. Then cut out the two menus in the structure. (ie. add a true/false property with the name "Show in bottom menu")
I had considered this Kristian and this was the way I did it initially, but I need the menus in the structure so that the client can easily differentiate the two visually.
Thanks anyway!
You can do this by using URL rewriting to replace "top-menu" and "bottom-menu". I'm not familiar with the url rewriting config, but search for it here or on Google, you should be able to fix this fairly easily.
Thanks sebastiaan, I'll look into that : )
What about the umbracoUrlAlias property?
Olly,
umbracoUrlAlias is a good solution (see Jannik's post), umbracoUrlName is another alternative.
umbracoUrlAlias provides a second url for the same page whereas umbracoUrlName changes your url permanently.
Hope this helps.
Regards,
/Dirk
@Dirk,
umbracoUrlName only changes the nodes' segment, not the entire path.
Using umbracoUrlAlias and hard coding the links is the only way to go without core modification or post processing.
Thanks very much guys : )
@Casey
umbracoUrlName does change the entire path, so if a document has this url: "/about/company" you can enter "/company".
EDIT
Oops... It does not change the entire path... :-/
Sorry
is working on a reply...