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 ForumsStoreStoreChangin module titles.Changin module titles.
Previous
 
Next
New Post
3/28/2008 10:29 AM
 

Hello.

First of all I want to say thanks for a great module, it supports our companys needs and beyond :)

Allthough I am having a problem at the moment, our site supports danish and english (and more languages on the way). I am in the middle of translating all the resource pages, but how do I change the module titles so they too can be modified depending on the chosen language?

An example:

I want to edit the Store Mini Cart so the module title changes depending on the language. I have tried adding the following to StoreMiniCart.ascx.cs

protected void Page_Init(System.Object sender, System.EventArgs e)
{
ModuleConfiguration.ModuleTitle = Localization.GetString("ModuleTitle", this.LocalResourceFile);
}

And of course I added an entry in the resource file called ModuleTitle.Text.

 

This does not seem to do the trick so I suppose the module title is overwritten somewhere, I just don't really know where to look.

Does anyone have any ideas?

 

Regards

Andreas

 
New Post
3/28/2008 6:22 PM
 

 

Hi

The module title is a label and can be accessed using the following code.  I do this in Page_Load() and have not tried it in Page_Init().  I suppose it should there too?

            Label l = (Label)this.ContainerControl.FindControl("dnnTITLE").FindControl("lblTitle");
            l.Text  = "Insert Your Text Here";

I use this to change the module title to match the category title for category listings in the store catalog module.

Cheers

Stuart

 

 
New Post
4/2/2008 6:13 AM
 

Thank you so much for your reply.

It actually seems like a good idea with changing the module title according to the chosen category, I might steal that idea :)

 

Anyway, it works like a charm. Actually, the code in the first post works as well, I just needed to copy the right dll file (doh).
But for people with the same question, both methods works fine, the code in my first post just forces you to create a new entry in the resource file called "ModuleTitle.Text"

Yet again, thanks for your reply, and I just checked your code and it works perfectly as well :)

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreChangin module titles.Changin module titles.


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