First of all, I'm a total Umbraco newb, with some experince in MVC3+ and lots of .NET experience.
Using one of the blog posts found on the web, I've created a partial navigation view :
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @* Macro to display child pages below the root page of a standard website. Also highlights the current active page/section in the navigation with the css class "current". *@
It's a pretty basic navigation bar, that's using Twitter Bootstrap. I'd like the "Project Name" (in bold) to point directly to the site's root url, but I have absolutely no idea how to do it.
My site structure is like this :
Home +----- Contact
When I'm on the Contact page - the root url is : http://localhost:36184/contact/ - and I'm expecting it to be just : http://localhost:36184 . Please note that Home is set to be root via the umbraco's back-end (whatever it's name is ;) )
Finding the Url of the site's root ?
Hi guys,
First of all, I'm a total Umbraco newb, with some experince in MVC3+ and lots of .NET experience.
Using one of the blog posts found on the web, I've created a partial navigation view :
It's a pretty basic navigation bar, that's using Twitter Bootstrap. I'd like the "Project Name" (in bold) to point directly to the site's root url, but I have absolutely no idea how to do it.
My site structure is like this :
When I'm on the Contact page - the root url is : http://localhost:36184/contact/ - and I'm expecting it to be just : http://localhost:36184 . Please note that Home is set to be root via the umbraco's back-end (whatever it's name is ;) )
Hi Maciek,
Is there any reason you want to find the URL of the root? because it is always just "/".
this should give you the root url
Cheers
Ali
is working on a reply...