You need to Register for free and Login to post a message in the forum.

Forum

Subject: changing 'download' text in document module to an image
Prev Next
You are not authorized to post a reply.

Author Messages
Fusion
Nuke Newbie
Nuke Newbie
Posts:9

21 Sep 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
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3442

22 Sep 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/leesykes

Lee Sykes's Facebook Profile
Fusion
Nuke Newbie
Nuke Newbie
Posts:9

25 Sep 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
Fusion
Nuke Newbie
Nuke Newbie
Posts:9

25 Sep 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
You are not authorized to post a reply.
Forums > DotNetNuke® > Modules > changing 'download' text in document module to an image



ActiveForums 3.7

Latest Forum Posts

RE: New Logo cant display by Germaine
Hi Joe, thanks it has been solved!
click track is not working by kishorpawar
I am using click track in my project can  any one help me  what can i wright in  Scrip Box so it can...
RE: Can't Login! Login Page can't be accessed... by durationinc
I didn't do any upgrade...both are new installations (start from scratch). DNN version 4.9.1. Since ...
Disable the functions on the menu until users have login by Germaine
Hi there, I am wondering if this can be done. I have configured the security roles in DNN.  However,...
RE: unsubscribe link for DNN website by maxdagenais
AWESOME, that worked! Thanks so much for your quick responses and time! Regards Lindy
RE: AdvanceEmail Newsletter is not working by kishorpawar
No this is not a third party module this is part od DNN opt -In Email in that opt In-Advanced...
RE: Can't Login! Login Page can't be accessed... by jncraig
Let's back up and start over.  Is this a new site or an upgrade of an existing site?  If it is an up...
RE: unsubscribe link for DNN website by jncraig
Sorry, I misinformed you.  It is not the Account Login Module.  Rather it is the User Account Module...
RE: unsubscribe link for DNN website by maxdagenais
Posted By jncraig on 08 Jan 2009 8:27 AMI'm guessing at the details, but there appear to be several ...
RE: Can't Login! Login Page can't be accessed... by durationinc
Hi Joe, Yes. But I don't think that is the problem. I installed another DotNetNuke in my PC (inst...
RE: ascx question by tlsadler
Lee, Ah....I like the idea all ready...thanks for the advice and link. Terry
RE: GoDaddy by tlsadler
Lee, Many thanks...will definitely check these out tonight. Terry
RE: Child portal to live site by psgrzelak
Thanks Lee, definetly going to look at that. Great site! I'm looking forward to going through the vi...
RE: Issue 37 Templates by leesykes
You may be able to achieve that, but it is not something I have tried, let us know what you find.I d...
RE: Child portal to live site by leesykes
Hello,Yes you should be able to change a child portal into a parent portal as it is only settings in...
RE: Alternative Payment providers? by leesykes
This is not something I have done before, can anyone else provide any tips?
RE: GoDaddy by leesykes
check out:How to backup a live hosted DotNetNuke website and restore it to a localhost installation ...
RE: Skin Background shows through in FCKeditor by leesykes
hello,I covered this in the FCK editor tutorials: FCK Editor CSS Skin Styles Preview in DotNetNukeBa...
RE: How to upgreat dnn 4.3 to 4.9.01 by leesykes
As a tip I have seen recommendations to upgrade to 4.6.2 first and then upgrade to 4.9.1 or whatever...
RE: Skining user profile and registration modules by leesykes
Did you find a solution?
AppTheory
RSS Feeds