We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Ah, of course. You need some mechanism to clear the session values. That’s why the default weblogin system uses a snippet. It generates the appropriate login form and logout link; you can modify the chunk template it uses for these.
      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
      Quote from: sottwell at May 08, 2009, 11:56 AM

      Ah, of course. You need some mechanism to clear the session values. That’s why the default weblogin system uses a snippet. It generates the appropriate login form and logout link; you can modify the chunk template it uses for these.

      Im not sure i follow completely, but found this line in the weblogin snippet:
      <a href=’[+action+]’>[+logouttext+]</a>

      There is no such placeholders in WebLogInPe though, not sure how to make them.

      here is what i found in weblogin.inc.php:

      // display logout
      $tpl = $tpls[1];
      $url = preserveUrl($modx->documentObject[’id’]);
      $url = $url.((strpos($url,"?")===false) ? "?":"&amp;")."webloginmode=lo";
      $tpl = str_replace("[+action+]",$url,$tpl);
      $tpl = str_replace("[+logouttext+]",$logoutText,$tpl);
      $output .= $tpl;
        • 21778
        • 223 Posts
        Maybe i should start a new topic on how to make the WebLoginPE logout funtion a placeholder like in WebLogIn grin
        EDIT:
        Found something very interesting
        http://modxcms.com/forums/index.php?topic=22912.0

        Thanks all for helping me with this smiley finally it looks just like i wanted to !