Technical support This forum is closed.
Version 1.x > Technical support > CMSMenu Styles and/or News Items CMSRepeater Styles View modes: 
User avatar
Guest
norashlea - 4/28/2006 12:33:02 AM
   
CMSMenu Styles and/or News Items CMSRepeater Styles
Is there a way to apply a style to the top-level menu item (CMSMenu) when a sub-item is selected? My user isn't keen on having breadcrumbs and would rather see the top-level menu item retain its CMSMenuHighlightedMenuItem setting if a lower-level menu item is selected.

Alternatively, can I modify the style of how my News items are displayed on the item details page?

For example -- on my news.aspx page template, I have a heading "News" in <h1>. I added this title into the aspx file because when I am at the item details page on the site, the "News" item on my menu is no longer highlighted (which indicates which menu section I am in, without the need for breadcrumbs).

But then when I view the item details, by default the news item headline is also displayed in <h1>. Using the Web Developer Toolbar in Firefox, the only classes I can see being applied to the news item detail display are MainPage and MainPageOverlay.

Thanks,
Sharon.

User avatar
Guest
admin - 4/28/2006 8:53:08 AM
   
Re: CMSMenu Styles and/or News Items CMSRepeater Styles
Hi Sharon,

you may need to add a code like this to your page template if you want to keep the main menu item highlighted:

if (Functions.GetAliasPath() != "/")
{
CMSMenu1.HighlightedNodePath = Functions.GetPathLevel(Functions.GetAliasPath(), 1);
}

If you need to modify the way the news items are displayed, you need to modify the transformation in Development -> Document Templates -> ... select News ... -> Transformations.

Best Regards,