We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21778
    • 223 Posts
    Hey guys!

    I need to make an button (or anchor) that links to my "control panel", a front end administration page i have created. The problem is i only want the button to be visible when a user logs in, and is member of a specific user group.

    Is this something that can be accomplished?

    Thanks
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You could use the MemberCheck snippet. It is part of the default MODx installation, so you should have it. It displays a specified chunk if the viewer is a member of a specified group. Your chunk would contain your link.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Alternately, your management page can be assigned to a document group that is associated with the user group, thus the page will only show up in the menu (or be accessible at all) for logged-in users who are members of the associated user group.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 21778
          • 223 Posts
          Wow, that was easy. Membercheck works like a charm!

          I went with your first suggestion since i don’t what the link to show up in my menu, but in a dropdown window with user options.

          Thanks again sott laugh