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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to change the default page?How to change the default page?
Previous
 
Next
New Post
9/16/2011 6:07 AM
 
Hi all,

I am new to DNN.
We are using DDN 5.X for my project.
I have different landing page for "Unauthenticated Users" and "Registered Users".
Both pages are called as Home Page.
How do I manage this?
Please help me.

Thanks for your help in advance.
 
New Post
9/24/2011 8:24 PM
 
typically the best way to do this is to have 1 homepage but put the different content on it - edit each module and set the permissions approriately (e.g. set some to view for "anonymous" and some for view for "registered users"

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/25/2011 2:33 AM
 
We do this on a number of sites using a simple custom redirector module

Westa
 
New Post
9/25/2011 8:36 AM
 
Hi Again,

I saw in Admin -> User Account in User Settings there is after login page setting but it doesn't seem to work.
So I have a custom login module as a skin object.
Does anyone knows how can I access these property. Also how can I disable the default login module. so my custom login module can be used.
 
New Post
9/25/2011 6:58 PM
 
Firstly - u can get a list of the user settings using something like

Hashtable settings = UserController.GetUserSettings(portalId);

Then from this hashtable read the "Redirect_AfterLogin" key to get the redirect tabid.

String redirectTabId = settings["Redirect_AfterLogin"].toString();

Convert the string to an integer.

Int thisTabId = Int32.parse( redirectTabId);

Then pass the tabid integer to the dnn NavigateURL method to get the target url.

String targetURL = NavigateURL( thsTabId);

>>>>>>>>>>>>>>

As for disabling the internal login module - this is actually not that easy a task - without hacking into the core code - depending on what you want to achieve.

The core has a set of routines that check to make sure there is a valid  Account Login module somewhere on any page that you want to target as a login page ...  which means the core skin login button or calls to friendly urls like /login.aspx.

What exactly are you trying to achieve - I do have some work arounds for this - but need to better understand what you are trying to achieve.

Westa
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to change the default page?How to change the default page?


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