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, ...Changing standard action iconsChanging standard action icons
Previous
 
Next
New Post
5/3/2009 11:59 AM
 

I'm trying to replace the standard icons (like print, settings, etc.). I'm using something like this in my skin which is working fine.

<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON2" CommandName="SyndicateModule.Action"
    IconFile="images/icons/rss16.png" DisplayIcon="True" DisplayLink="False" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON3" CommandName="PrintModule.Action" IconFile="images/icons/print16.png" DisplayIcon="True" DisplayLink="False" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON1" CommandName="AddContent.Action"     IconFile="images/icons/action.png" DisplayIcon="True" DisplayLink="False" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON4" CommandName="ModuleSettings.Action" IconFile="images/icons/edit16.png" DisplayIcon="True" DisplayLink="False" />

The images are correctly picked up from the container skin folder. 

The problem with this however is that any IconFile specified in the skin/container overrides any icon that I specify in code when I add the actions: 

        public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions {
            get {
                DotNetNuke.Entities.Modules.Actions.ModuleActionCollection Actions = 
                       new DotNetNuke.Entities.Modules.Actions.ModuleActionCollection();
                Actions.Add(GetNextActionID(), "Configure", 
                       DotNetNuke.Entities.Modules.Actions.ModuleActionType.AddContent, 
                       "", ModuleHomeDir + "images/Configure1_16.png", 
                       ModuleContext.EditUrl("Configure"), false, 
                       DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
                return Actions;
            }
        }

If I remove the ImageUrl from the container skin, then the icon from my Actions.Add method is used.

This is a problem if an action/command is used more than once. Unusual with printing, but happens all the time with ModuleActionType.AddContent. For example, Hosts > Portals uses three actions with AddContent, specifying separate icons.

This is probably how it has worked for many releases, but it is odd that explicit icons from the Add method are overridden by the container skin. This makes it really difficult to replace standard icons, which is an absolute requirement for non-white backgrounds. The gif icons just don't look good on non-white backgrounds. For obvious reasons I don't want to replace the standard icons in the site's image folder.

Another complication is that the DNN:Actions menu uses the built-in icons (for print, settings, etc) and there appears to be no way to override these at all. (However, it does use icons added in code just fine).

Is there another solution to get me closer to what I'm trying to do, allowing me to override all the default built-in icons AND use some custom icons with Actions.Add? I understand I can replace the actionbutton with my own control which behaves differently, but I am hoping for a simpler solution.

 

 
New Post
5/6/2009 6:57 AM
 

bump

 
New Post
5/11/2009 3:43 AM
 

Mike, I have seen this issue before but I cannot find it now.

I think this is a known issue, cannot remember the details.

BTW, there are plans to replace the icons with png8 icons, so the background should not be a problem anymore with the default icons.

http://yelotofu.com/2008/04/the-png-transparency-trap/ .

 
New Post
5/13/2009 2:38 PM
 

Thanks Timo.  PNG8 is great for icons. That certainly will fix it for good. Hopefully, the actions problem will be fixed soon, too.

Do you have any timeframe for the PNG8 icons?

 
New Post
5/13/2009 3:08 PM
 

Hi Mike

I first posted this issue here: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/109/threadid/281578/scope/posts/Default.aspx and Timo and I worked through the issue, only to discover that it has been an issue with DNN since forever.  The issue has been logged here: http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=9256&PROJID=23

I have discovered that you can quite safely use custom icons for Print and Feeds (RSS).  If you change the edit/add icon, you will experience this problem.  Not much help, I know, but I hear you brother.

Later
Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Changing standard action iconsChanging standard action 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