We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10208 ☆ A M B ☆
    • 1,780 Posts
    I can't find it. I know I saw it, and it excludes the login output on specified id's but I can't find it in the docs.

    I need to exclude login on certain pages. There's a parameter for doing so, correct?
      Frogabog- MODX Websites in Portland Oregon
      "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
      Having server issues? These guys have MODX Hosting perfected - SkyToaster
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Anyone?
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I don't think this was a property of the Login snippet, it would more likely have been an output filter in the loginTpl, or a checkbox TV.
          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
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          Thanks Susan, I just figured out where I saw it. In Bob's Subscribe tutorial. Darn.
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 3749
            • 24,544 Posts
            I would to it with a custom snippet. Something like this (untested):


            [[!ShowLogin? $noShows=`3,4,7`]]



            <?php
            /* ShowLogin snippet */
            
            $docId = $modx->resource->get('id');
            $noShows = explode(',', $scriptProperties['noShows'];
            
            if (in_array($docId, $noShows)) {
                $output =  '';
            } else {
               $output = '[[!Login]]';
            }
            
            return $output;


            You could also have a TV that determined whether to show the Login snippet and use either a snippet or an output modifier with it.

            The snippet above would be faster, though.



            ------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using.
            MODX info for everyone: http://bobsguides.com/modx.html


              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