You are here:   Details View
Register   |  Login
Overwrite Window and Module Title in DotNetNuke
By xfernal on Dec 30, 2009 11:46 AM • Rank (1284) • Views 1269
0

0

There are many reasons one may want to dynamically change the module or page title in DotNetNuke. The most common reason is for DNN search engine optimization. Here is a quick snippet of code for changing the titles in DotNetNuke. In this case, we have wrapped this ability with a module setting that enables or disables the functionality for a page or module:

 

 If CType(Settings("EnableTitleOverwrite"), String) = "1" Then
Me.ModuleConfiguration.ModuleTitle = Left(esIndex.IndexTitle, 255)
End If
If CType(Settings("EnableWindowTitleOverwrite"), String) = "1" Then
CType(Me.Page, CDefault).Title = Left(esIndex.IndexTitle, 255)
End If
Map Location

GPS Latitude: 0.00000 Longitude: 0.00000
Visitors
Top User:
Total Check-Ins: 0
Unique Visitors: 0
My Check-Ins: 0
  
Comments - Comment RSS
Socialize
Who Viewed
Who Reviewed
Shortened URL
http://tinyurl.com/yddw4lm

What is I'm Vivo! ?

Vivo is the Italian word for alive. Therefore, "I’m Vivo!" means "I’m Alive!" As a user and as a community, you decide if a piece of information will live or die. I’m Vivo! is changing how people discover information and bring it to life! » Learn more
» Submit an audio/podcast, business, feed, image, news, or video!