Forums
>
DotNetNuke®
>
Modules
changing 'download' text in document module to an image
Last Post 09/25/2006 7:59 PM by
Jessica Forrest
. 3 Replies.
Author
Messages
Jessica Forrest
Nuke Newbie
Posts:9
09/21/2006 6:34 PM
Hey guys .. hopefully a simple question that someone could answer.
I want to change the text in the documents module that says 'download' to a nice graphical image.
I've tried editing the 'document.ascx' page where the 'download' text reside and replacing it with an image, and nothing seems to happen, however any other changes i do to that document seem to affect the module. Any one have any idea how i could replace that text ?
thanks
joshua
Lee Sykes
DNN Creative Staff
Nuke Master VI
Posts:4945
09/22/2006 3:06 AM
Hi Joshua,
Ok, I've done a quick test, I can find where the download text is set:
If you look at the Document.ascx file and look at:
<data name="DownloadLink.Text">
<value>Download</value>
</data>
Here you can edit the text, but I don't know how you would change this to an image. - Let us know if you come across a solution
Thanks,
Lee Sykes
Site Administrator
Subscribe to the website
:
DotNetNuke Video Tutorials
:
The Skinning Toolkit
:
DotNetNuke Podcasts
Twitter:
www.twitter.com/DNNCreative
Jessica Forrest
Nuke Newbie
Posts:9
09/25/2006 1:05 PM
Okay .... i've been able to figure out how to add an image for the download text .... albeit not really what i expected, but it works.
So i assumed that changing the 'document' text in the file document.ascx would be it, and have it just work, but its not quite that simple. You actually need to change the
<data name="cmdDownLoad.Text">
<value>Download</value>
</data>
found in the SharedResources.resx to
<data name="cmdDownLoad.Text">
<value><img src="/images/butt_download.gif"></value>
</data>
and then ... in your document.ascx to
<asp:linkbutton id="lnkDownload" resourcekey="cmdDownLoad" runat="server" cssclass="CommandButton" commandname="Edit"><img src="/images/butt_download.gif" border="0"></asp:linkbutton>
And that did it ...
hope that helps for anyone curious.
cheers
joshua
Jessica Forrest
Nuke Newbie
Posts:9
09/25/2006 7:59 PM
Actually ... disregard that last post ... that does in fact change the text to be a button, however it breaks the editing html text module. So not good ... not good at all ... ** sigh ** DNN is frustratingly frustrating !! What should be a simple task is encased in typical obfuscation. I'll keep plugging away and see what i can come up with. If i find something, i post it ...
cheers
joshua
Forums
>
DotNetNuke®
>
Modules