Equivalent of CmsUrlContext?
Me again!
So migrating from 3.7 to 5 is FUN!
Anyway, I have the following bit of code in my legacy Sitefinity site and I cannot for the life of me work out what the 'new' equivalent would be. I have tried various different methods but I end up bringing in the old CMS references, something I want to avoid given they are effectively now redundant/no longer support or developed against:
public void RadPanelbar1_ItemDataBound(object sender, RadPanelBarEventArgs e)
if (this.hideUrlForGroupPages)
CmsSiteMapNode node = e.Item.DataItem as CmsSiteMapNode;
if (node != null && node.CmsPage.PageType == CmsPageType.Group)
e.Item.NavigateUrl = "";
if (CmsUrlContext.Current != null)
if (CmsUrlContext.Current.Path == Page.ResolveUrl(e.Item.NavigateUrl).ToLower())
e.Item.Selected = true;
Hi Richard
Did you finally figure out what the equivalent is? I'm facing the same challenge as yours
Thanks
Yosief
Anyone? Telerik guys??