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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Changing module title from C#Changing module title from C#
Previous
 
Next
New Post
12/2/2011 5:32 AM
 
Actually in DNN 6.1.1, the ModuleConfiguration.ModuleTitle method also does not work.

So is there an other way?

Perhaps they changed "lblTitle" to something else?

 
New Post
12/2/2011 9:14 AM
 

That's exactly what happened. In DNN 6.x in the Tttle container object (/admin/Containers/title.ascx) the ID for the title label was changed from "lblTitle" to "titleLabel". Although I have not tested this, the code that I supplied in this thread should work when "titleLabel" is substituted for "lblTitle".

I hesitate to call this a "breaking change" since this method of modifying a module title is somewhat of a kludge. Although DNN does a great job in maintaining backward compatibility of the API, it is not under obligation to maintain backward compatibility in the id's of user controls. A similar change in the id of a control used as a placeholder for registering jQuery in default.aspx has caused failure of Gallery 4.04.00's slideshow.

This will affect my Forge project, Content Dejour, in which I first used this code when installed in DNN 6.x.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/2/2011 9:55 AM
 

I use VB.Net for coding, but here is what I use, and it worked in DNN6.

VB.Net:
Dim objPage As DotNetNuke.Framework.CDefault = Me.Page
objPage.Title = "New Title"

C#:
DotNetNuke.Framework.CDefault objPage = this.Page;
objPage.Title = "New Title";

Hope this helps!

-Ben


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
2/1/2012 11:16 AM
 

Hello,

If it helps anybody, I was trying to change a control title and couldn't get any of these options to work. Ultimately, I was successful with this:

Me.ModuleConfiguration.ModuleControl.ControlTitle= "X"

This was on 6.1.2

Hope this helps,

Mike

 
New Post
6/25/2012 10:55 AM
 
On DNN 6.1.2, try this:

this.ModuleContext.Configuration.ModuleTitle = "XYZ";

Hope this helps
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Changing module title from C#Changing module title from C#


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