kentico_ivanat
-
9/6/2010 10:55:05 AM
RE:Base URL and the Home Page
Hi,
If you are using CMSTreeMenu webpart for navigation, you can add following method to CMSTreeMenu.ascx.cs code (/CMSWebParts/Navigation/cmstreemenu.ascx.cs):
protected override void OnInit(EventArgs e) { base.OnInit(e); this.menuElem.LoadDataAutomaticaly = false; string html = this.menuElem.RenderedHTML.ToString(); this.menuElem.RenderedHTML = html.Replace(CMS.GlobalHelper.UrlHelper.ResolveUrl("~/Home"), "/"); }
The path to Home document will be replaced with "/".
Best regards, Ivana Tomanickova
|