Thanks for using Sitefinity.
I suppose that goes by what you define as easy.
Here's one way to go about it, though:
The idea is to grab the page title, find the parent page and its title, and then set the value to a hidden field. Using client side programming we can set the "selected" appearance to the appropriate parent page.
and get the title / set it to the hidden field
protected void Page_Load(object sender, EventArgs e)
var actualNode = SiteMapBase.GetActualCurrentNode();
while (actualNode.ParentNode != null && actualNode.ParentNode.Title != "Pages")
actualNode = actualNode.ParentNode as PageSiteNode;
hidden.Value = actualNode.Title;
Then you can get the matching element with something like this:
elems = document.getElementsByClassName(targetClass);
(elems[i].innerHTML == title)
//Do styling on menu here.
.rmText is the default class assigned to the span that is wrapped in the link for the menu.
I hope this helps!
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items