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 default icons in containersChanging default icons in containers
Previous
 
Next
New Post
9/25/2007 4:19 AM
 

I'm trying to change the default icons for print, syndication, help etc in some of my containers.  I've tried setting the IconFile attribute for the control with no luck.  I've tried relative paths and full paths in the attribute value (I assumed the file location would default to the /images directory). No image is displayed and the text alternative appears.

Can anyone give me a pointer as to how to achieve this?

Is there any documentation around for container ACTIONBUTTONs? - the latest skinning doc is, to be generous, sketchy.

 

Many thanks,

 
New Post
9/25/2007 1:31 PM
 

This is how its done using the html format for a skin. make sure that all images are in the container directory!

In your html container file just add this Token where you want it   [ACTIONBUTTON:print]

in the container xml file add this: container.xml

<Object>
  <Token>[ACTIONBUTTON:print]</Token>
  <Settings>
   <Setting>
    <Name>CommandName</Name>
    <Value>PrintModule.Action</Value>
   </Setting>
   <Setting>
    <Name>DisplayIcon</Name>
    <Value>True</Value>
   </Setting>
   <Setting>
    <Name>IconFile</Name>
    <Value>print.gif</Value>
   </Setting>
   <Setting>
    <Name>DisplayLink</Name>
    <Value>False</Value>
   </Setting>
  </Settings>
 </Object>

For a container .ascx file its done like this:

containername.ascx

make sure this line is in the top of the .ascx file!

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

In the .ascx file add this where you want the Token.

<dnn:ACTIONBUTTONprint runat="server" id="dnnACTIONBUTTONprint" CommandName="PrintModule.Action" DisplayIcon="True" IconFile="print.gif" DisplayLink="False" />

You can do the same for the rest of the Tokens.

Enjoy
Ray

 
New Post
9/26/2007 2:33 PM
 

Thanks Ray,

It was the image location that was throwing me.  I'd wrongly assumed that it would default to the root/images directory and not the container directory.

It does seem that it won't accept a path value, which probably isn't necessary.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Changing default icons in containersChanging default icons in containers


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