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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHow to change Upload button labelHow to change Upload button label
Previous
 
Next
New Post
5/29/2007 4:20 PM
 

I just dicovered how well the Repository is leveraging template. Wow very  powerful!

I have been wondering is there a way to change the label (value) of the Upload button. I would like to change the value of the button from "Upload" to "Submit Article" in the Article template.

I have made this change to the Header.xml file for the UPLOADBUTTON  token:

<Object>
        <Token>[UPLOADBUTTON]</Token>
        <Settings>
            <Setting>
                <Name>Default</Name>
                <Value>Submit Article</Value>
            </Setting>
        </Settings>
    </Object>

But this is not working. Am I missing something.

Thank you very much.

Fabrice

PS: I came accross the power of the template by accident. Maybe it would be a great service to the newbies like me if you could have an article in the help files for the this module or on the blog...


Vesrion 4.09.02 (03/13/2009)

Learning how to best support the PeerMomentum.com community with DNN. Please contact me if you know of any good stable and skinable social networking/user profile modules.

Thank you all for the great contribution!
 
New Post
5/29/2007 4:36 PM
 

You can read the User's Guide at http://www.dotnetnuke.com/Projects/ModuleRepository/Downloads/tabid/831/Default.aspx

Chapter 5 explains all about the templating engine and Appendix A is a tag reference with all the tags and settings that are available.

Now, to your question. The text for the upload button is not controlled by the template. Instead the text of the upload button is retrieved from the Resource file to allow you to localize your web site in different languages.

To change the text from 'Upload' to 'Submit Article', edit the /DesktopModules/Repository/App_LocalResources/Repository.ascx.resx file and look for the following element...

<data name="UploadButton.Text">
    <value>UPLOAD</value>
</data>

change it to

<data name="UploadButton.Text">
    <value>Submit Aricle</value>
</data>

 

 
New Post
5/29/2007 5:27 PM
 

Thank you so much for the fast response. I had the feeling that it was controlled by the localization file (as it is a general control). I was hopping to be able to overide it in the template or offer the possibility to point to other localize entry as I am using the Repository module in different context (file sharing, resource sharing/information, and articles). Each of these context will require a different label for the butoon (Upload File, Add Entry and, Sumit Article respectively). I guess I will have to find a generic label then.

Thank you again.


Vesrion 4.09.02 (03/13/2009)

Learning how to best support the PeerMomentum.com community with DNN. Please contact me if you know of any good stable and skinable social networking/user profile modules.

Thank you all for the great contribution!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHow to change Upload button labelHow to change Upload button label


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