HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ..."User Log In" always displayed on main homepage"User Log In" always displayed on main homepage
Previous
 
Next
New Post
5/31/2007 9:42 AM
 

I can't seem to figure out how to make the text "User Log In" disappear from <title></title> tag on my homepage.  When I click to any other page (after logging in) then it shows the appropriate title.  The only time the main homepage will show the correct title is when I go into "Design" mode using the control panel.  Any thoughts to correct this?

 
New Post
5/31/2007 10:33 AM
 

If you have the account login module installed on the page it will override the page title. I don't know why, but it does this.


Chris Hammond

Director of Training Programs, DotNetNuke Corp.
 
New Post
5/31/2007 11:47 AM
 

To disable this behavior, open up admin\Security\Signin.ascx.vb and search for the following lines:

           'Override the redirected page title
            Dim myPage As DotNetNuke.Framework.CDefault
            myPage = CType(Me.Page, CDefault)
            If myPage.PortalSettings.LoginTabId = Me.TabId Or myPage.PortalSettings.LoginTabId = -1 Then
                myPage.Title = Localization.GetString("ControlTitle_login", Me.LocalResourceFile)
            End If

You can either comment them out, or modify the behavior of the if statement.

The alternative is to make a hidden login page. That will set the LoginTabId to be something other than -1, and the "User Log In" will not show up on your homepage.

 
New Post
5/31/2007 11:51 AM
 

Thanks!

That cleared it up.  I wish there was some kind of fix for this issue.

 
New Post
5/31/2007 12:15 PM
 

You may edit \admin\Security\Signin.ascx.vb

Comment the Private Sub Page_Init just as the following:

Quoted

        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            'Set the Password Control Properties
            'ctlPassword.ID = "Password"

            'Set the Profile Control Properties
            'ctlProfile.ID = "Profile"
           
            'Override the redirected page title
            'Dim myPage As DotNetNuke.Framework.CDefault
            'myPage = CType(Me.Page, CDefault)
            'If myPage.PortalSettings.LoginTabId = Me.TabId Or myPage.PortalSettings.LoginTabId = -1 Then
            '    myPage.Title = Localization.GetString("ControlTitle_login", Me.LocalResourceFile)
            'End If

        End Sub

End Quoted

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ..."User Log In" always displayed on main homepage"User Log In" always displayed on main homepage


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.