• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

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

You are not authorized to post a reply.
Sort:


New Member


Posts:1
New Member

    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:

     


     

     



    Veteran Member


    Posts:292
    Veteran Member

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

      Upendo Ventures Upendo Ventures
      DNN experts since 2003
      Official provider of the Hotcakes Commerce Cloud and SLA support


      Basic Member


      Posts:39
      Basic Member

        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 Member


        Posts:5
        New Member

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

          These Forums are dedicated to 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. 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.

          Would you like to help us?

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

          Get Involved