Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Hiding all menu icons...
Previous Previous
 
Next Next
New Post 4/21/2008 7:55 PM
User is offline Sam
19 posts
10th Ranked


Re: Hiding all menu icons... 

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 8:19 PM
User is offline ROBAX
1885 posts
5th Ranked


Re: Hiding all menu icons... 

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 7:46 PM
User is offline Sam
19 posts
10th Ranked


Re: Hiding all menu icons... 

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/27/2008 10:53 PM
User is offline Sam
19 posts
10th Ranked


Re: Hiding all menu icons... 

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 Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Hiding all menu icons...
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP