DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

How to hide the left-nav button itself based on user role on DNN 9

You are not authorized to post a reply.

New Around Here

    I have left navigation menu and the source code is under the skin folder (Project\Portals\_default\Skins\VAN\includes\menu.ascx). I want to hide the tab itself based on the user role. I have first created the page on DNN and tried to disable the Display in Menu option from the page settings but that didn't work out as I think I have to update something in the source code and I am not sure what to update in the source code file as I am not much used to with DNN Platform. I really appreciate your help. FYI, I am aware that how to display the page content based on user role but now sure how to hide the tab based on user role.  Please let me know and find below source code for left-nav bar menu:




    Senior Member

      Are you using a standard menu provider? You should be able to hide/show tabs (pages, I assume) using permissions if you are.

        Posted By Mahima on 17 Jun 2019 03:13 PM

        I have left navigation menu and the source code is under the skin folder (Project\Portals\_default\Skins\VAN\includes\menu.ascx).


        That looks like a custom menu, is there static HTML in that file? (the list of pages you see on the left)

        New Around Here

          Have you tried using tabs?
          You are not authorized to post a reply.

          These Forums are dedicated to the discussion of DNN Platform.

          For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

          1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
          2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
          3. 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.
          4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          5. No Flaming or Trolling.
          6. No Profanity, Racism, or Prejudice.
          7. Site Moderators have the final word on approving / removing a thread or post or comment.
          8. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved