Last post May 02, 2006 08:57 PM by jstawski
Feb 02, 2006 11:47 AM|thelyonken|LINK
Feb 02, 2006 06:04 PM|nbc|LINK
If I understand what you want correctly I think you can do this out of the box with the current DNN.
Set your tab to redirect (in Page Settings) to the target page you have setup for login. Set User page in Site Settings to direct the user to wherever you want them to go once logged in.
Feb 02, 2006 08:25 PM|thelyonken|LINK
Mar 28, 2006 08:00 PM|thelyonken|LINK
Mar 28, 2006 10:13 PM|bschmitt14|LINK
Mar 28, 2006 10:22 PM|aus_nexxus|LINK
When you set the login page all ti does is when peole click login or are redirected it sneds them to the selected page. It does not help for Ken's issue. Also a warning on setting the login page, make sure you have a login control on that page before you
do it otherwise you will not be able to login again.
Mar 29, 2006 04:26 AM|thelyonken|LINK
May 02, 2006 08:57 PM|jstawski|LINK
I was having the same issue. I'm creating a custom module that a certain point in time needs a logged in user. When that time arrives I redirect to the login page only to find out the user gets redirected to the home page.
Partial solution to the problem:
Under Admin - Site Settings - Advanced Settings - Page Management, make sure the home page is set to <None Specified>.
In the code I redirected this way:
Dim _PortalSettings As PortalSettings = DotNetNuke.Common.Globals.GetHostPortalSettings()
As String = NavigateURL(Me.TabId,
1. Me.TabId is the current tab which makes the user come back to the current page.
2. False is a boolean specifying it is not a supertab
3. _PortalSettings is the settings for the current site, it is needed by the function
4. "Login" is the ControlKey that specifies to display the login.
5. Null.NullString is an empty string for querystring parameters
This results in the redirect string being in the following format:
Why did I mention to be a partial solution? Because this works perfect when there is no querystring parameters involved. In my case I need it to come back to the page to persist the querystring and as of now I can not make it work. Any help is appreciated.
Hope this helps people...