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, ...How to Customize Module Actions Icons Programatically?How to Customize Module Actions Icons Programatically?
Previous
 
Next
New Post
9/8/2008 2:12 PM
 

Not sure if anyone has ever requested / queried this or ever wanted to do this, but I am developing a comprehensive DNN skin pack and would like to customize the Action Icons for my containers programatically. I.E. without manually replacing the .gif files in the root/images folder.  I know that there has been talk of a new icon set for DNN, but what if users / skinners want to use other icon images, but still use the inherent DNN actions/controls..?

Obviously in a skin pack, I am unable to affect the installation files images, so I was hoping there would be a way to substitute the Action Icons with images in my containers root folder - Not sure if this is achievable through CSS (doubtful) or with an XML File, or even by using a property of sorts. (e.g. you can specify what the min and max icons for a container are - like so: <dnn:VISIBILITY runat="server" id="dnnVISIBILITY" minicon="Icon_Minimize.gif" maxicon="Icon_Maximize.gif" />  I'm looking to replace the Print, RSS Syndicate, Delete, and Edit/Add Content icon .gifs (16X16px) with my own.

Any help would be appreciated.

Thanks in advance.


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

 
New Post
9/10/2008 1:41 AM
 

 

Hi,

1) Place the container Icon images in your container directory.

2) <%@ Register TagPrefix="dnn" TagName="ICON" Src="~/Admin/Containers/Icon.ascx" %>

3) <td><dnn:ICON runat="server" id="dnnICON" /></td>

4)

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<span class="left">

 

 

 

<dnn:ACTIONBUTTON1 runat="server" id="dnnACTIONBUTTON1" CommandName="AddContent.Action" DisplayIcon="True" displayLink="True" />

 

 

 

</span>

 

 

 

<span class="right">

 

 

 

Custom print.gif and Help Icons below

<dnn:ACTIONBUTTON3 runat="server" id="dnnACTIONBUTTON3" CommandName="PrintModule.Action" DisplayIcon="True" DisplayLink="False" iconFile="print.gif" />

 

 

 

<dnn:ACTIONBUTTON4 runat="server" id="dnnACTIONBUTTON4" CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="False" />

 

 

 

<dnn:ACTIONBUTTON5 runat="server" id="dnnACTIONBUTTON5" CommandName="ModuleHelp.Action" DisplayIcon="True" DisplayLink="False" iconFile="help.gif" />

 

 

 

</span>

 

 

 

</td>

 

 

 

</tr>

Hope this helps

 

 

 

 

</table>

 
New Post
9/10/2008 2:08 AM
 

Thanks for this.
I will try it out and let you all know if this works...


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

 
New Post
9/10/2008 4:55 AM
 

This works well.  Simple enough for a newbie.  Thanks for the help.


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, ...How to Customize Module Actions Icons Programatically?How to Customize Module Actions Icons Programatically?


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