We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23643
    • 15 Posts
    hallo all,
    i have question?
    how to make logout link in webloginpe use <a href=’’>logout</a>
    • You can use a form, something like this, and style the button to look as you wish in your CSS. Use the &loHomeId=`xx` parameter to tell it what page to go to on logging out.

      <form id="wlpeUserForm" action="[~[*id*]~]" method="POST">
      		<fieldset id="wlpeUserButtons">
      			<button type="submit" id="wlpeLogoutButton" name="service" value="logout">Log Out</button>
      		</fieldset>
      	</form>
      


      WebLoginPE does use $_REQUEST, so you could make a link with a query string to tell it what service has been requested:
      <a href="xxx?service=logout">Logout</a>


      You’ll need to put whatever you decide to use in a chunk, then specify the chunk name in the &successTpl=`chunkName` parameter of the snippet call.

      See the "Views" section of the documentation that came with WebLoginPE for more details.
        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