We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    Hello...

    i thing this is no hard but i tried and i is not working!!

    I need a button called TUTORIAL in the main menu, but it only must be showed if you are login like admin or Editor...

    if you are a normal user you can.t see this button.

    I try in Security/manager permissions, and web permissions but i can.t
    i check everithing in access permissions in the tutorial page, and create user groups and user groups etc... but NOTHING!!! huh huh huh

    help please... thank you so much!!!
      --
      ysanmiguel.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Web pages are only secured against web users. If you want a page that only shows to logged-in Managers, use the QuickManager menu bar. In QM’s configuration you can add menu items quite easily. To keep non-manager users out of the page, leave it unpublished.
        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
        • 33238
        • 388 Posts
        Sorry but i dont know were is the QM’s configuration embarrassed

        and i dont want unpublished a page because i need that my client find the button easily.

        i just need that the button don’t appear until you use the login and password to edit it the web...
        because the button have video tutorials to edit modx pages and the users don’t need that information off course.

        the web users is good works because put an user and pass to the page but i dont want more users and passwords for the clients, i just need that appear the button when the client login ...

        sorry if i don’t understand your answer well...

        thank you!!
          --
          ysanmiguel.com
          • 33976 ☆ A M B ☆
          • 571 Posts
          Hi Miguel,

          you could try to use this snippet extMemberCheck, or a PHx extender :
          <?php
          /*
          	* phx:loggedIn */
          	global $modx;
          	if(isset ($_SESSION['mgrValidated'])){
          		return true;
          	}
          	else{
          		return false;
          }
          ?>
          or even better, try to customize the help pages in the back-end Customize help pages in MODx Evolution (in french, so use google translator tool).

          Hope it helps.

          Cheers
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            If the user in question is going to be editing pages, then he needs to be a logged-in Manager user anyway. Logged-in Manager users can see unpublished pages (unless you’ve created a role without that permission and assigned your editor users to that role). That’s why you leave these manager-only viewable pages unpublished. Manager users can see them; web users whether logged in or not cannot, even if they put the URL directly in their browser address bar. Unless you’ve disabled it, logged-in Manager users get the QuickManager menu bar.

            QuickManager is a plugin. Go to Elements -> Manage Elements, and the Plugins tab. Click on QuickManager, and go to its Configuration tab. Scroll down and you’ll find a field for adding the URLs and titles for custom buttons in the QM menu bar.

            'Tutorial','link','[~45~]','',''


            there are five parts to it; the button title, the type (in this case it’s a link), URL of the page to link to (use MODx tags here for internal links), templates this applies to (irrelevant) and roles this applies to (irrelevant, unless you want to limit it to certain roles). You can have as many custom links as you want; separate them with || characters. Of course, too many of them might break the nice-looking layout of the QM menu bar, so it’s best to use custom buttons with some thought.

            You can use QM to create a front-end management portal by creating an unpublished resource with buttons for various front-end functions, then create a custom button in QM to that page. Then set your manager users’ login home ID to that same page, and they never even have to see the Manager itself. If you’re going to be doing a lot of this kind of thing, learning all about QM is well worth your time. You can find documentation for it in the assets/plugins/qm/readme.html file.
              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
              • 33238
              • 388 Posts
              Romain, Sussan THANK YOU SO MUCH!!! grin grin grin

              Romain the -extMemberCheck- snippet looks Perfect, so helpful to some applications that i need to do. thank you so much!!

              and Sussan your explanation is wonderful, that is a perfect solution to my question, thank you so much!!!

              grin grin grin grin I.m really happy, thanks!!!
                --
                ysanmiguel.com