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 hide left navigation tab based on user role on DNN PlatformHow to hide left navigation tab based on user role on DNN Platform
Previous
 
Next
New Post
6/10/2019 12:18 PM
 
Hi Daniel,

Thank you for your response again. yeah so I wanted to hide the particular tab in the menu based on user role and I am not sure how can i create custom module for that. do you have any suggestions on this?

I really appreciate your time.

Thank You!

 
New Post
6/10/2019 12:52 PM
 
Hi Michael,

Thanks for your response. I wanted to hide particular tab from the left nav bar based on user role. Also, we are using DNN v. 09.02.01 (533) and it is default skin for left nav menu. I am not sure how/where to update in the skin ascx file for hiding particular tab from menu based on user role. Please let me know if I have to update at any specific place. I really appreciate your time.

Thank You!
 
New Post
6/11/2019 1:42 AM
 
Mahima,

it is as Daniel said. If a user is not allowed to view a page, then it is hidden from the menu (as long as you don't use a third-party menu or module for this that does not take care of permissions).

I think you should check the page permissions, maybe you have overseen something, e.g. checked View permissions for All Users or Subscribers or something alike).

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/11/2019 2:38 AM
 
Well, if you have never built a Dnn module, this may be a bit overkill, but you could start in the Development section of this page https://www.dnnsoftware.com/videos there is a series of videos about module development. Then you would use the TabController, UserController, RoleController to do your logic.

Another idea that came to mind is that you could put some javascript or jQuery code in a module that is only visible by that role. That code would find that page in the menu and remove it...

But yeah, I see no easy built-in way to do this out of the box.
 
New Post
6/11/2019 3:46 AM
 
Mahima pate wrote:
Hi Daniel,

Thank you for your response again. yeah so I wanted to hide the particular tab in the menu based on user role and I am not sure how can i create custom module for that. do you have any suggestions on this?

I really appreciate your time.

Thank You!

As far as I remember the DNN.Links module has this functionality (select "Menu" in the module settings).

 

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to hide left navigation tab based on user role on DNN PlatformHow to hide left navigation tab based on user role on DNN Platform


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