Css class for any menu item.

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/24/2011 2:10:57 PM
Gravatar
Total Posts 550

Css class for any menu item.

Hi Joe,

I thinks it is a nice feature that we can apply a css class for any item in site menu by adding a custom css class filed to page settings for it's menu makeup.

Best,

Asad

1/25/2011 1:55:46 PM
Gravatar
Total Posts 18439

Re: Css class for any menu item.

I've added a wish list item in my project tracker for this, I will look into it when I get a chance but it may be a while before I get to it.

Best,

Joe

3/17/2011 9:09:17 AM
Gravatar
Total Posts 550

Re: Css class for any menu item.

Hi Joe,

Thanks for adding this feature. I think it is better that apply custom css class to <li/> tag. Now custom css apply to <a/> tag.

Best,

Asad

3/30/2011 1:03:01 PM
Gravatar
Total Posts 2253

Re: Css class for any menu item.

Hi Joe,

I've just installed 2.3.6.4 but this is applying to the A instead of the LI. I thought I saw somewhere that you had changed it to apply to the LI and not the A? Have I missed something?

Thanks,
Joe

3/30/2011 1:09:39 PM
Gravatar
Total Posts 18439

Re: Css class for any menu item.

I did make it possible to use the li but I didn't make it not possible to add the class to "a" since I had already implemented that first, its controllable from theme.skin. The included skins have it on the li not the a. If you compare your theme.skin to one of the ones under /Data/skins you should see what you need.

Best,

Joe

3/30/2011 2:26:38 PM
Gravatar
Total Posts 2253

Re: Css class for any menu item.

Hi Joe,

Thank you Sir! I couldn't find an example of a SuperFish menu that wasn't using the TreeView so I copied the syntax for an Artisteer menu and adjusted it for SuperFish. Works like a charm!

Just in case anyone else wants this for a SuperFish menu that doesn't use the TreeView:

  <portal:mojoMenu runat="server" SkinID="SiteMenu"
   RenderContainerCssClass="true"
   RenderImages="false"
   UseMenuTooltipForCustomCss="true"
   RenderCustomClassOnLi="true"
   RenderCustomClassOnAnchor="false"
   RenderLiSelectedCss=""
   RenderAnchorSelectedCss="true"
   UlCssClass="sf-menu"
   LiCssClassWithChildren="sf-with-ul"
   LiCssClassWithoutChildren=""
   LiSelectedCssClassWithChildren="current"
   LiSelectedCssClassWithoutChildren="current"
   LiChildSelectedCssClass="current"
   LiParentSelectedCssClass=""
   AnchorCssClass=""
   AnchorSelectedCssClassWithChildren=""
   AnchorSelectedCssClassWithoutChildren=""
   AnchorChildSelectedCssClass=""
   AnchorParentSelectedCssClass=""
   InnerSpanMode=""
   UseNet35Mode="true"
  />

Thanks,
Joe D.

You must sign in to post in the forums. This thread is closed to new posts.