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

    So i have the Weblogin snippet working on a specific page. Great!

    However, when logging in redirects you to your chosen page, how can you then display the logout link in a more general place on the page so a user can log out at any time.

    Thanks in advance

    bS
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can use the WebLogin snippet; it will display only the logout link if a user is logged in. You could specify a login form template for it that only contains the logout part, so that a login form would never appear in that place.
        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