Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Hiding all menu icons...Hiding all menu icons...
Previous
 
Next
New Post
4/21/2008 9:55 PM
 

No, I mean the "page icon", the image that is selected under Admin > Pages > Settings > Advanced Settings > Page Icon. I am using this image for a section-banner (using a custom-made .ascx control in the skin), and so don't want these large images showing up at all in the menu. I added the code below:

.menuIcon 
{
display: none;
}
into my skin.css, which does remove all of the icons for any pages that are not in the root of the menu... i.e. I have a page called 'Departments', and then inside that a page called 'Human Resources'. If I set icons for both of those, with the above CSS I will not see the HR one in the menu, but next to the Departments one I will.

It's doing my head in!

 
New Post
4/22/2008 10:19 PM
 

Ok,

Your solpart menu will need these attributes added to it in the skin's ascx file:

rootmenuitemcssclass="rootmenuitem" rootmenuitemselectedcssclass="rootmenuitemselected" rootmenuitemactivecssclass="rootmenuitemactive"

Check that your menu hasn't already got these items specified. They may already be there, but they may have different name values specified.

Then add this to your stylesheet:

.rootmenuitemactive img,.rootMenuItem img,.rootmenuitemselected img{display:none}

Change the class names to match if your menu already had them specified as something else.

Rob

 
New Post
4/27/2008 9:46 PM
 

Yeah tried that... it *does* work I guess, but it also removes the little arrows indicating another menu level, which is less than ideal!

 
New Post
4/28/2008 12:53 AM
 

Okay, finally got it sorted out.

Just incase anyone is interested, here is what I did:

In my .ascx file, I used the following control:

<dnn:MENU runat="server" 
ID="dnnMENU"
ControlOrientation="Vertical"
UseRootBreadCrumbArrow="false"
MenuItemCssClass="menuItem"
MenuItemSelCssClass="menuItemSelected"
MenuIconCssClass="menuItemIcon"
CSSIndicateChildRoot="menuItemArrow"
CSSIndicateChildSub="menuItemArrow"/>

And then in my skin.css file:

.menuItem
{
    background-color: #4D9EDC;
    border: none;
    font-family: Tahoma, Arial, Helvetica;
    font-size: 14px;
    font-weight:bold;
    color: #FFFFFF;
    cursor: hand;
}  
.menuItemSelected
{
    background-color: #BFE9FF;
    font-family: Tahoma, Arial, Helvetica;
    font-size: 14px;
    font-weight:bold;
    color: #000000;
    cursor: hand;
}  

.menuItemIcon
{
}
.menuItem img
{
    display: none;
}
.menuItemSelected img
{
    display: none;
}

.menuItemArrow img
{
    display: block;
}  

 

 In this way, I used the .menuItem and .menuItemSelected classes to hide (display:none) all of the images, then explitly used the .menuItemArrow img to override this for the arrows.

Seems to work just fine!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Hiding all menu icons...Hiding all menu icons...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out