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 show menu tab that forces login?How to show menu tab that forces login?
Previous
 
Next
New Post
10/22/2008 11:13 AM
 

I need to configure a few pages so that they display on my menu but force the user to login when they are clicked. I'm sure I've done this before somehow?

If I give the pages a specific role they aren't shown to guest users.
Any thoughts...?

Thanks.

 
New Post
10/22/2008 12:48 PM
 

Here's one way you can do this:

Let's say you have a page called "Resources" that you want displayed on the navigation, but the page requires you to be logged in.  Make the "Resources" page visible only to Authenticated Users.

Create a second page named "Resources".  The Link Type will point to the login-required Resources page...but your new Resources page will only be visible to Unauthenticated Users.

 
New Post
10/22/2008 4:16 PM
 

This is sort of similar to the above post but just expands on Mike's point. If you give anyone a url of a page on your site that is only visible to a registered user then the recipient, once they click on the url is automatically taken to the login screen prior to accessing the actual page you gave them. So I guess my point is that you can code a link to that url pretty much any way you want (see proper use of url's in a link threads) and it will require the user login first. The way above is a good example though of integrating it with your existing menu.

Mike


Michael Emond
City of Manchester NH
www.manchesternh.gov
 
New Post
10/25/2008 4:12 AM
 

Thanks for your replies. Very helpful... Although I wonder if there's another way? An additional problem I now have is that this portal gets exported and is then used to create others. Although both of your suggestions work really well, they redirect to hard-coded links (tab Ids) when the site is exported (in the template file), which breaks when the site is imported to create a new portal.

Any thoughts...

 

 
New Post
11/10/2008 5:43 PM
 

This is how I solved this issue.

  1. Set the page permission to "All Users."  This keeps the page available in the menu regardless weather a visitor is logged in or not.
  2. Add an "Account Login" module somewhere on your page.  This will prompt visitors to login/register if they are NOT logged in.  It will hide itself if visitor IS logged in.
  3. Set the permission on the content module you want to hide from unregistered users to only be visible to those who you want to see it.  Uncheck "All users" if it is checked.
     

The only thing I don't like is that when a user logs in, users are sent to the home page.  Besides that it works fine.
~ Garth

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to show menu tab that forces login?How to show menu tab that forces login?


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