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 ForumsRepositoryRepositoryPossible to localize the Upload button (list view) for different Repository types?Possible to localize the Upload button (list view) for different Repository types?
Previous
 
Next
New Post
9/26/2008 6:52 AM
 

Hi, I'm guessing not possible but I would love to have the Upload button in List view say 'Add a Photo' in one part of my site (Slide Repository) and have 'Add a Tagline' in another part of my site (Business Card Repository).

I'm guessing is not able to be localized and I will have to change to just 'Add' but would prefer the personalization of the former.

Alternatively, can I add two Repository module definitions and use one for Add a Photo and the other for Add a Tagline? How would I do that?

Cheers,

Jessica

 
New Post
9/29/2008 9:45 PM
 

Jessica,

Don't give up so easily. I'm currently working on a new template for the Repository which displays the items in a grid format, and allows customization of button text on the main repository display. If anyone is interested I'd be happy to upload it to the Repository project site, with the blessing of the project lead of course.

If you want to change the button text on the Upload form of a particular Template (i.e. directory), you can modify settings in the form.ascx.resx file found in \DesktopModules\Repository\Templates\<templatename>\App_LocalResources. However, if you want to modify the text of any controls on pages other than the Upload form, you basically have 2 choices:

  1. Modify the entry for the upload button in the Repository.ascx.resx file under \DesktopModules\Repository\App_LocalResources. However, keep in mind that if you modify this file, you will be applying the change to ALL templates.
  2. Create a new Repository Template

If you want to create a new template, you can start with a template that most resembles what you want to accomplish. Then copy the entire folder containing the source Template files. The location of the template folder will be \DesktopModules\Repository\Templates\<templatename>. The Repository User's Guide contains a great deal of information useful for creating new templates -- you can download it in the Project's downloads section.

--Patrick

 
New Post
9/30/2008 11:11 AM
 

Patrick, by all means, when you're done, send me your new template and I'll make it available to everyone.

Thanks!

 
New Post
10/2/2008 8:52 AM
 

Hi Patrick, thanks for your reply. You suggest that creating a new repository template (I already change them so significantly they barely resemble the original) would allow me to change the text of the upload button specific to that template. But in conflict with this, you also say the upload button text applies to all templates. Which I believe it does.

Are you saying there is a way of creating a new template which will allow me to change the upload button text? I couldn't see anything about that in the user guide, would you be able to give me specific instructions if you have time to tell me how to do this?

Thanks!

Jess

 
New Post
10/2/2008 9:21 AM
 

To change a template and make the changes available to ALL portals:

1. pick a template that you want to modify

2. look in the /DesktopModules/Repository/Templates folder, you'll see a folder for each template. COPY the entire folder of the template you want to modify

3. PASTE the folder you copied to the same Templates folder. So, for example, if you want to modify the default template, COPY the default folder and when you paste it, you'll have a "Copy of default" folder. Rename the folder to something else, like "MyTemplate".

4. open the "MyTemplate" folder and make whatever changes you want to the files

5. Now, go to your Repository Module's settings page, and in the 'skins' dropdown list, select 'MyTemplate' as the skin.

To change a template and make the changes only available to a SINGLE portal:

perform steps 1 and 2 from above

3. Go to /Portals/# where # is the PortalID of the portal you want your new template to be used for

4. Check to see if there is a folder named "RepositoryTemplates" if not create it, so you would have /Portals/#/RepositoryTemplates

5. PASTE the folder you copied from step 2 into the new RepositoryTemplates folder, so for example, if you want to make a small change to the default template but only for a specific portal, you would copy the /DesktopModules/Repository/Templates/default folder and end up with /Portals/#/RepositoryTemplates/default

6. Change the files in the new location as you wish.

7. Go to the Repository Module's settings page. In the skins dropdown list you will see an asterisk next to default. That indicates that it's being loaded from the Portals folder. So now, if you use a Repository module in Portal ID #, you will see the asterisk for default and it will use your updated files. In all other Portals, you will not see the asterisk and it will use the default files from the DesktopModules folder.

If you need any more info, just ask

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryPossible to localize the Upload button (list view) for different Repository types?Possible to localize the Upload button (list view) for different Repository types?


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