We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30498
    • 30 Posts
    In revo 213 i'd like to achieve the following:

    By using a templatevar i'd like to be able to run the Login snippet or display nothing at all, depending on per page choice.

    So i created a single select pulldown tv, and entered in the options field:
    yes==@EVAL return $modx->runSnippet("Login", array('service'=>'login'));
    || no=='something else or nothing at all'
    


    Now, it works okay in that it displays the login form just fine if yes selected but logging in does not work. (it does work if snippetcall goes directly in template) I'm sure i'm missing something real silly here, but right now am stuck...

    Anyone knows whats going on?
      • 4172
      • 5,888 Posts
      try:

      yes==[[!Login]]||no==something else or nothing at all
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 30498
        • 30 Posts
        Beautyful laugh

        Thanx alot Bruno!