We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Hi,

    Is it possible to hide some of the main menu items. I’ve managed to remove permissions so some of the options in the menu don’t show, for example system settings within the system tab. But can I hide the whole support tab, cant even work out which permissions hide the options, for example the link to the API. Also how can i hide the widgets on the home/welcome page.

    Thanks

    Ben
      • 26422
      • 107 Posts
      I’d like to know the answer to this as well. If I go into Actions and look at the settings for a menu item it has an option for Permissions but it’s just a text field and I can’t find any documentation on what this is for.
        Crawford Paul

        Bridgecourt Web Design - Proudly using ModX CMS
        Serving Welland, Niagara, Ontario, Canada and the world!
        http://www.bridgecourt.com
        • 3749
        • 24,544 Posts
        Yes, it’s easy to hide a menu item or subitem on the Top Menu. Just add a custom permission in that field (call it anything you like). If there is already a permission there, add yours with a comma:

        existingPermission,your_custom_permission

        Users without that permission won’t see the menu item.

        Important: Be sure to add that custom permission to the Administrator policy first, or you won’t be able to see that item either and won’t be able to remove the custom permission without editing the DB.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 26422
          • 107 Posts
          Thanks Bob, sure is easy once you know how. That works great!
            Crawford Paul

            Bridgecourt Web Design - Proudly using ModX CMS
            Serving Welland, Niagara, Ontario, Canada and the world!
            http://www.bridgecourt.com
            • 36926
            • 701 Posts
            Quote from: BobRay at Sep 01, 2010, 02:07 AM

            Yes, it’s easy to hide a menu item or subitem on the Top Menu. Just add a custom permission in that field (call it anything you like). If there is already a permission there, add yours with a comma:

            existingPermission,your_custom_permission

            Users without that permission won’t see the menu item.

            Important: Be sure to add that custom permission to the Administrator policy first, or you won’t be able to see that item either and won’t be able to remove the custom permission without editing the DB.

            Hey Bob,

            Sorry not 100% sure on this still. Under the permissions what would i need to put to say hide the support tab.

            Thanks

            Ben
              • 3749
              • 24,544 Posts
              OK, go to Security->Access Controls -> Assess policies tab.
              Right-click on the Administrator policy and select edit.
              Click on the Permissions tab.
              Click on the New Permission button.
              Put support_menu in the "Name" field.
              (The name is arbitrary, but it has to match exactly what you use in the Permission field below.)
              Put "Show the Support Menu" in the Description field.
              Click on "Add"
              Click on "Save"

              That gives you (as the admin) that permission.

              Now, go to System - > Actions
              In the "Top Menu" panel (right side) right-click on "Support"
              Select Update Menu
              put support_menu in the Permissions field.
              Click on Save.

              Now a user needs that permission to see the Support Menu. Viola. wink

              For some other menu choices, there is already a permission in the Permission field. If you want to hide those, just add a comma and your own permission at the end (no spaces).

              Note that your change to the Administrator policy could be overwritten during some upgrade installs (I’m not sure). That would make the Support menu disappear for you (the admin) and you’d have to edit the DB to get it back. To avoid that, you could duplicate the Administrator policy and change all policy references in all ACL entries from Administrator to the duplicate policy.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 36926
                • 701 Posts
                Quote from: BobRay at Sep 05, 2010, 05:36 PM

                OK, go to Security->Access Controls -> Assess policies tab.
                Right-click on the Administrator policy and select edit.
                Click on the Permissions tab.
                Click on the New Permission button.
                Put support_menu in the "Name" field.
                (The name is arbitrary, but it has to match exactly what you use in the Permission field below.)
                Put "Show the Support Menu" in the Description field.
                Click on "Add"
                Click on "Save"

                That gives you (as the admin) that permission.

                Now, go to System - > Actions
                In the "Top Menu" panel (right side) right-click on "Support"
                Select Update Menu
                put support_menu in the Permissions field.
                Click on Save.

                Now a user needs that permission to see the Support Menu. Viola. wink

                For some other menu choices, there is already a permission in the Permission field. If you want to hide those, just add a comma and your own permission at the end (no spaces).

                Note that your change to the Administrator policy could be overwritten during some upgrade installs (I’m not sure). That would make the Support menu disappear for you (the admin) and you’d have to edit the DB to get it back. To avoid that, you could duplicate the Administrator policy and change all policy references in all ACL entries from Administrator to the duplicate policy.


                Thanks Bob,

                Wow it easy once you know how, you know what i’d not even noticed that systems >> actions menu. Was to busy looking under the security menu for ways to do this.

                Also is it possible to have control over the panels on the home page. Can you for example hide some of them on a per user basis and can you create your own custom panels. I can see you can makes changes under the sytem settings but this is for all users.

                Thanks again Bob for the help.

                Ben
                  • 28215
                  • 4,149 Posts
                  splittingred Reply #8, 16 years ago
                  Quote from: bennyb at Sep 06, 2010, 10:52 AM

                  Also is it possible to have control over the panels on the home page. Can you for example hide some of them on a per user basis and can you create your own custom panels. I can see you can makes changes under the sytem settings but this is for all users.

                  Hi Benny,

                  Custom dashboards are not yet available in 2.0, but are slated for 2.1. Thanks.
                    shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                    • 36926
                    • 701 Posts
                    Quote from: splittingred at Sep 06, 2010, 11:00 AM

                    Quote from: bennyb at Sep 06, 2010, 10:52 AM

                    Also is it possible to have control over the panels on the home page. Can you for example hide some of them on a per user basis and can you create your own custom panels. I can see you can makes changes under the sytem settings but this is for all users.

                    Hi Benny,

                    Custom dashboards are not yet available in 2.0, but are slated for 2.1. Thanks.

                    Awesome, thanks splittingred it’s be great addition!