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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDisplay Restricted Pages in MenuDisplay Restricted Pages in Menu
Previous
 
Next
New Post
4/20/2011 8:25 AM
 
If I have pages that my user cannot view within their current security roles, how can I display them in the menu?

I found a thread where someone else asked this question, but it wasn't adequately answered:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/201/threadid/351130/scope/posts/Default.aspx#351644


What I want is to display links to pages in the menu, even though the current user doesn't have access! Adding a key or padlock icon to these items would be nice too.

Does anybody know how to do this?

Thanks
 
New Post
4/20/2011 7:27 PM
 
you may revoke view permissions for the user to the modules on the page instead of the page itself and instead provide an HTML module asking for registration (or whatever action is required to view the content).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/27/2013 7:03 AM
 

Hi Sebastian,

Thanks for the answer, originally I talked the client out of the course of action, so never came back to the forum.

We're now building a website in DNN 7, and the same client has once again asked for the same navigation behaviour, so, same question, but with DNN 7.

I do understand your answer, and why it would work, but the site is not to be managed by myself, and even if it was, I'm not looking for a convoluted configuration scenario that my client wouldn't understand.

If DNN 7 can't display restricted pages on the menu using the standard menu modules, what do you think the best strategy would be to create a new navigation module that can? I only really want the downstream browser behaviour, so what's the simplest menu module to use as a starting point?

Thanks,

Mark Rabjohn
Integrated Arts

 
New Post
1/29/2013 5:03 AM
 
Hi
What if we do it in this way:

create a page(page1). Check Include in menu true. set view permission for all users.

create another page(page2). Check include in menu false. Set view permission for Registered user.
Include our module which is for the registered users to "page2".

Create a custom module addit to "page1" and on page load of the view###.ascx page redirect it to "Page2" .

Now when a unuthenticated user clicks on the menu "page1", he will first redirect to login page. Then after registered he can see the content in the "Page2" .

Thanks,
Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
 
New Post
1/29/2013 7:39 AM
 

Mark,

what Sebastian suggested is one way to do (and not the worst). There was the same discussion some days ago in another thread, so here is another way to do it.

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDisplay Restricted Pages in MenuDisplay Restricted Pages in Menu


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