I've not found a valid and definitive solution to this problem searching on this forum, so I post my own one. The solution works on CS 2007 and must be applied only one time: it will work also for newer pages.
1. Open the \Themes\CurrentThemeName\Content\content.aspx file in your editor.
2. Copy the following code after the </script> tag:
<
This code above is redundant, because it applies to the HeaderRegion ContentPlaceHolder it's default content, but it will allow us to reference the SelectedNavigation1 control.
2. Replace the intial c# code for the Page_Load() event with the following lines:
3. Create you articles. The "article name" field is very important. Chose a name without spaces, like "links" or "contactus". Remind that you can specify a more friendly title in the headline field (i.e. "Some links for you guys" or "Contact Us").
4. Open the SiteUrls.config and add the following line to the "locations" section, under the "common node" (the "common" node is usually at the end of the locations section):
5. Under the navigation node, add the line corrisponding to the new menu link:
Replace the two "X" with the name of the article.
6. Repeat the steps 4 and 5 for every article you want to link on the menu bar
IMPORTANT: Due to caching, the menu could resoult changed or highlighted only after minutes. Be patient...
Thanks Diego for posting this!
One is glad to be of service...
Hello,
This solution does not work in CS 2008. After following the directions, the link takes me to the following path:
/error.htm?aspxerrorpath=/themes/default/content/content.aspx. It should be resolving to an article.
Can someone please help? I basically want the custom, article based, navigation item text to change color when it's active just like the default names, i.e. Home, Blogs, Media, etc.
Thanks in advance!
Jason
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com