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, ...Customize Module Actions Icons in DNN 5.0.0Customize Module Actions Icons in DNN 5.0.0
Previous
 
Next
New Post
1/15/2009 2:26 PM
 

A few months back I posted a query regarding custom Action Icons for Containers (Please see: How to Customize Module Actions Icons Programatically? - http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/109/threadid/254282/scope/posts/Default.aspx )

In DNN V4.9.1 and earlier editions, one would have to register Action Buttons up to 5 times, depending on which controls you wanted available with your container. Like so:

<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON5" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON4" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON1" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON2" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON3" Src="~/Admin/Containers/ActionButton.ascx" %>

The corresponding custom icon references and control placement would be as follows:

<dnn:ACTIONBUTTON5 runat="server" id="dnnACTIONBUTTON5" commandname="ModuleHelp.Action" displayicon="True" displaylink="False" iconfile="Icon_Help.gif" />
<dnn:ACTIONBUTTON4 runat="server" id="dnnACTIONBUTTON4" commandname="ModuleSettings.Action" displayicon="True" displaylink="False" iconfile="Icon_Settings.gif" />
<dnn:ACTIONBUTTON1 runat="server" id="dnnACTIONBUTTON1" commandname="AddContent.Action" displayicon="True" displaylink="False" iconfile="Icon_Edit.gif" />
<dnn:ACTIONBUTTON2 runat="server" id="dnnACTIONBUTTON2" commandname="SyndicateModule.Action" displayicon="True" displaylink="False" iconfile="Icon_RSS.gif" />
<dnn:ACTIONBUTTON3 runat="server" id="dnnACTIONBUTTON3" commandname="PrintModule.Action" displayicon="True" displaylink="False" iconfile="Icon_Print.gif" />


Where the image referred to in "iconfile="Icon_Help.gif" would be in the root of the container folder.

In DNN V5.0.0, you only have to register the Action Buttons once.  Like so:

<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON" Src="~/Admin/Containers/ActionButton.ascx" %>


And then the corresponding control placement would be as follows:

<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON1" CommandName="AddContent.Action" DisplayIcon="True" DisplayLink="True" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON2" CommandName="SyndicateModule.Action" DisplayIcon="True" DisplayLink="false" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON3" CommandName="PrintModule.Action" DisplayIcon="True" DisplayLink="false" />
<dnn:ACTIONBUTTON runat="server" ID="dnnACTIONBUTTON4" CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="false" />


I have 3 Questions, that I'm hoping someone (Timo Breumelhof?) could answer please.

  1. When I apply a custom icon using "iconfile="myfilenamehere.gif" for dnnACTIONBUTTON1, all other module-specific icons (e.g. the Export & Delete Icons in Hosts > Portals) .... display that icon.  What is the best way to include custom Module icons either programmatically or with CSS?
  2. If I use custom icons, how do I prevent DNN from displaying the same icon for other functions - Like Export, Import, View options, etc..?
  3. How do I set custom module icons for DNN 5?


Again, any help would be appreciated.

Thanks
Jon

 


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

 
New Post
1/17/2009 5:29 PM
 

Hi Jon

I just tested what you describe, but it seems to work as expected.

I tried with one icon and an icon for each item, but it's still is all ok.

Did you try to restart the application and clear the cache?

Do you still have the problem or is there anything special you did?

 
New Post
1/18/2009 12:37 PM
 

Hi Timo

Thank you for the response.

Did you try in 4.9.1..?  or 5.0.0 - They both do the same thing.  Set your test container to the default Admin container, go to HOST > PORTALS.
The problem I'm having is that the default EXPORT PORTAL icons, etc all take on the same icon as ACTION 1 (the DNN Blue Pencil Icon).  Also, in a Module like the Ventrian Simple Gallery, the "View Options" icon takes on the same icon as ACTION 1. 

Can I send you a screenshot...?  Do you want to test and get back to me..?

Jon


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

 
New Post
1/18/2009 4:08 PM
 

Ah, ok I see it now, I misinterpreted your post.

I'll discuss it internally and get back to you.

 
New Post
1/18/2009 4:38 PM
 

This is not a specific DNN 4.9 or 5.0 issue, I tested this in DNN 4.8.4 and it is the same.
So it is not new, although I never noticed it before.

The only "solution" for now would be to use a different container for the admin interface.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Customize Module Actions Icons in DNN 5.0.0Customize Module Actions Icons in DNN 5.0.0


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