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

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/13/2019 4:30 AM
 
I _think_ the links module allows permissions per links but no together with pages, only with manual links.. Not 100% sure though, worth a try.
 
New Post
6/13/2019 8:16 AM
 
As far as I remember it uses the permissions when the mode is set to "Menu". When it is set to "Links", you may define permissions per link when the setting is activated.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
DNN Connect 2020
 
New Post
6/17/2019 1:50 PM
 
Hi Daniel, 
Thank you for your response but that didn't work out as I want to hide the tab based on user role in the left nav bar and the code for that tab is in the source code under the skin folder. first I have created the page on DNN and added page name to the hyperlink in the source code Also, I have tried to disable the option to display that tab in the menu on DNN page settings but that didn't work as that tab source code is in under the skin folder and Below is the theme created for the left nav bar menu. I am not sure how/what to update on the source code file skin/theme file. Please let me know if you have any idea regarding what to update in the source code file. FYI, I am aware that how to display the page content on DNN based on user role but I don't know how to hide/show the particular left-nav tab itself based on the user role. Please find below the source code:

skin source code(Project\Portals\_default\Skins\VAN\includes\menu.ascx): 

<div class="logo">

 </div>

 <a href="#" class="nav-opener"><span class="sr-only">opener</span></a>

    <div class="menu-wrap">

        <div class="menu-drop">

            <nav id="nav">

                <ul class="main-menu">

                    <li><a href="/my-team"><i class="ico icon-team"></i> My Team</a></li>//want to hide/show this tab based on the user role

                    <li><a href="/links-library"><i class="ico icon-library"></i> Links Library</a></li>

                    <li><a href="/calendar"><i class="ico icon-calendar"></i> Calendar</a></li>

                    <li><a href="/my-profile"><i class="ico icon-profile"></i> My Profile</a></li>

                </ul>

            </nav>

            <ul class="list">

                <li><a href="/logoff"><i class="ico icon-signout"></i> Sign Out</a></li>

              </ul>

        </div>

    </div>

Thank You


 
New Post
6/21/2019 3:37 AM
 
I have never implied it would work based on role. It would be based only on permissions. If you want it to be based just on role automatically, you would probably need to build a custom module for it or hardcode the links you want, this is not a built-in feature of the menu system.
 
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.

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