^LoginToggle; or ^LoginToggle();
Displays a "Login" or "Logout" message depending upon whether the user is logged in or not. You can optionally specify other labels like this: ^LoginToggle("Click here to log in.","Click here to log out.");. You can also use the special case ^LoginToggle(linkonly); to return only the URL with no label.
As a third parameter you can optionally use another template by using the template url. Example: ^LoginToggle("Click here to log in.","Click here to log out.","/url/to/your/template");
This Macro may be nested inside other Macros if the text returned does not contain commas or quotes.
These variables are available in the LoginToggle template:
toggle.url
The URL to login or logout.
toggle.text
The Internationalized label for logging in or logging out (depending on the state of the macro), or the text that you supply to the macro.
Keywords: macro