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?