Setting the title of pages in DotNetNuke to include portal name

Go to the root of the DotNetNuke install and open the “Default.aspx.vb” file. Find the code:

‘ tab title override
If PortalSettings.ActiveTab.Title <> “” Then
strTitle = PortalSettings.ActiveTab.Title
End If
Title = strTitle

and change this to include the portal name with “PortalSettings.PortalName”:

‘ tab title override
If PortalSettings.ActiveTab.Title <> “” Then
strTitle = PortalSettings.PortalName & ” – ” & PortalSettings.ActiveTab.Title
End If
Title = strTitle

This may change with later versions of DNN (such as 5) but this works in 4. Why this isn’t the default setting I have no idea.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>