Click here to register. Registration is required if you want to post to the forums.

If you register, we can also contact you with news on new module versions, and upgrades to new modules as we make them available. 

Use of your registration information is subject to our privacy policy.

Inventua Forums

Subject: SideMenu - CurrentItemCssClass Not Worknig for all levels
Prev Next
You are not authorized to post a reply.

Author Messages
Noah Bast

13 Feb 2012 1:51 PM  


  I'm working on a skin with a side menu for deeper pages.  The current page needs to be a different style, so I enabled CurrentHeaderCssClass and CurrentItemCssClass.

Here is the line in the skin's .aspx file:

<tt>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <dnn:INVSIDEMENU runat="server" id="dnnINVSIDEMENU" Source="-4" Levels="3" CurrentSubTreeOnly="True" MenuHeaderCssClass="SideMenuHeader" MenuHeaderHighlightCssClass="SideMenuHeaderHighlight" MenuItemCssClass="SideMenuItem" MenuHighlightCssClass="SideMenuItemHighlight" CurrentHeaderCssClass="SideMenuCurrentHeader" CurrentItemCssClass="SideMenuCurrentItem" TreatTopLevelAsHeader="false" AppendLevelToClass="true" DrawSeperator="false" DrawTrailingHR="false" UseName="True" /></tt>

This does not appear to be working when the current page does not have children.  Here is the HTML for the current page:

[script removed]

Is this a bug, or am I doing something wrong?

Also, we're using a MegaMenu for the top menu, and the 2nd level has no content.  Is there a way to tell Inventua to not render a particular level, but still render levels above and below it?  i should be able to make this work with css and display:none, but if there's a way to not render the levels at all, I would prefer it.


Noah Bast

13 Feb 2012 1:56 PM  
ack, using the 'Computer Code' style was clearly a mistake.

I don't see a way to edit my post, or I'd clean that up...
Anthony Glenwright

13 Feb 2012 4:33 PM  
The first thing is to have a look at the page output ("view source"). You should see that the CSS class that you have defined is rendered on a SPAN that wraps the current item hyperlink. You may need to adjust your CSS, as the way that it is rendered may not be what you expected.
Noah Bast

13 Feb 2012 5:29 PM  
I had example code pasted in, but the forum saw the embedded javascript and removed it.

I have looked at the source exstensively (via FireBug)
For menu entries with children (that count as headers), the additional CurrentHeader CSS class shows up properly. For entries without children (that count as items), the additional CSS class is not added.
Anthony Glenwright

13 Feb 2012 5:55 PM  
You can send sample output to Can you also please let me know your DNN version and sidemenu version.
You are not authorized to post a reply.
Forums > Inventua Forums > DotNetNuke Modules/Components Support > SideMenu - CurrentItemCssClass Not Worknig for all levels

ActiveForums 3.7