Custom [ACTIONBUTTON] IconFile
Last Post 03/07/2006 4:25 PM by Lee Sykes. 3 Replies.
Author Messages
Thomas Smith
Nuker
Nuker
Posts:13


--
03/07/2006 3:22 PM  

I am trying to apply customized Command Buttons for containers. Is it supposed to be in the container/skin.zip file before upload? Do I place the file in my portal/host root directory?

Thanks!

Earning our stripes... everyday.
imagesmith.com
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
03/07/2006 3:32 PM  
Do you mean you have created a skin object?

If you follow the method that is used for a skin object such as the HouseMenu, you upload the HouseMenu skin object as if you are installing a module. This is then placed within the skin object area in the module definitions.

Now if you use the token for your skin object within your skin / container ie. [HOUSEMENU] it will add the skin object into your skin.

I haven't actually created a skin object yet, but I have an idea for a skin object that will be handy for everyone, so I'm thinking of creating a tutorial on this and releasing the skin object alongside it. - This will be a few issues away though.

If I was looking for tips on creating skin objects I would study the skinning documentation that comes with DotNetNuke and also study the source code of any other skin objects that have been created, such as the HouseMenu to learn how they are created and applied to a skin.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Thomas Smith
Nuker
Nuker
Posts:13


--
03/07/2006 3:42 PM  
Thanks for the quick reply Lee.

Sorry, I must have goofed on my previous entry as my question is quite incomplete...

In the container.xml file we find the following

[ACTIONBUTTON]


CommandName
AddContent.Action

.............................

IconFile
mygif.gif




Where do I place mygif.gif?

Thanks
Earning our stripes... everyday.
imagesmith.com
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
03/07/2006 4:25 PM  
ok, that makes more sense! - You just want to replace the image...

This is something I have not done before. The DNN skinning docs doesn't really provide any clues, it states: "File to use for command icon if not using the built in command icon (ie. myicon.gif)

So yes, as a first test I would add the icon directly into your container zip file and hopefully that should override the settings for the default icon.

Let me know if this works, thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile


---