Products

Solutions

Learn More

Partners

Community

Blog

About

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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Change Home Page DynamicallyChange Home Page Dynamically
Previous
 
Next
New Post
9/20/2011 3:53 PM
 
I can only create a single portal on the site I am working on and I have one set of pages for unregistered users to view primarily with HTML content. I have a specific home page setup for these unregistered users to see when they first hit the site. 

When a registered user logs in I am currently not displaying the home page that I am displaying to the unauthorized user to registered users, I eliminated access via security, (and I do not want to have to put them on that page initially only for them to have to navigate to the page they really need to see).  Due to the configuration, I am currently seeing a message indicating that the signed in user is not authorized to view the home page.

What I need assistance with is changing the home page dynamically to another page when a user signs in so that the home page is specific to the role. Either that or I need to change what is displayed on the single home page (as well as the title of the page) when a user signs in based on the role.  There will be multiple roles that will need to see different information on each page when they login.  I would prefer to do this in such a way as to allow a single administrator the ability to see the page and update html content if necessary.

Can this be accomplished?  Do I need to try some kind of redirect on the home page for specific signed in users based on role to the page they need to see?  Any assistance anyone can provide would be appreciated.

Thank,
Jeff

 
New Post
9/20/2011 4:08 PM
 
Jeff, an alternative it to set security for the homepage to everyone...but then show/hide the modules on that page based on security. So one more might be for all users, another just for registered....so check reg and click to a red x for unauthenticated.

That way you can show content to different users (unauthenticated vs registered members) easily and only manage one page.

There are also some redirect modules for sale on snowcovered that can auto redirect users based on logged in / not logged in.


Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
9/20/2011 4:10 PM
 
You can add more modules to the home page and set their security so that they are only visible to users in your chosen roles.

That allows you to have the home page look different depending on how they are logged in.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
9/20/2011 4:21 PM
 
I appreciate the prompt response.

Managing this through security is how I am attempting to handle this now hiding and showing modules based on the userID (only a few users currently, but need to convert this to roleID). However, I have not been able to find a way to change the title (the actual menu title) of the home page based on the roleID to something else based on the role. In addition, I need to determine how the site administrator can easily access all the modules on the home page when he is changing content without having to scroll down the page forever to get to all the modules for every role (some roles will have the same title so this could be confusing for the administrator).

Is there an easy way to create a redirect on the home page without having to purchase it? I have the need for this type of functionality often outside this site and would love to know how it needs to be done for reusability purposes.

Also, how can I obtain the role of the user when they login. As a user can have more than one role I would assume that this is in an array?

Any assistance is appreciated.

Thanks,
Jeff
 
New Post
9/20/2011 4:58 PM
 
Jeff, can you code? If so the logic is pretty simple.



Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Change Home Page DynamicallyChange Home Page Dynamically


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out