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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Changing a modules controlTitle at runtime based on a certain conditionChanging a modules controlTitle at runtime based on a certain condition
Previous
 
Next
New Post
7/19/2009 7:26 AM
 

1. Assuming that your module control inherits from DotNetNuke.Entities.Modules.PortalModuleBase (which is must/should), there is indeed the public property ModuleConfiguration which returns the module's ModuleInfo object. I'm not following you when you say that ModuleConfiguration gives you a list of the controls I put on the page.


ModuleConfiguration.ModuleControl is a property that contains the current control. That was what I was trying to get at.

2. If it works at all, setting ModuleConfiguration.ModuleControl.ControlTitle would only have an effect on the displayed title if that property was set during the control's Page_Init not Page_Load event. Likewise with setting ModuleConfiguration.ModuleTitle.


Why do you say "If it works at all?" Isn't it supposed to?

3. ModuleConfiguration.ControlTitle was deprecated (made obsolete) in DNN 5.00.00 and was replaced by ModuleConfiguration.ModuleControl.ControlTitle.


I got that much. Any reason why?

Since by default the ControlTitle is what gets displayed as the module title for any control other than the default view control, it is actually the ModuleTitle property which you need to change dynamically. Since you indicated that you cannot do that until the Page_Load event handler, it will be necessary to use my second suggestion. Did you try that approach?


Not yet. I will a little later (If not today, then tomorrow). The part about ModuleControl.ControlTitle being displayed only for the default view control is confusing. Are you saying that the default view control for the module has its title set with ModuleControl.ControlTitle, and all the rest are set with ModuleTitle? If so,

  1. How do you set the default view control in a module
  2. Just my difference in probramming style, but I would have done things a slight bit different here


 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Changing a modules controlTitle at runtime based on a certain conditionChanging a modules controlTitle at runtime based on a certain condition


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