We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
Tips & Tricks
Search
a conditional logout link
9 Posts
fitzmodx
Reply #1,
15 years, 4 months ago
Hi all,
I need to create a conditional logout link on a page that is only visible when a webuser is logged in
the link would be this
<a href="[~[*id*]~]&service=logout">logout</a>
thank you
☆ A M B ☆
3,141 Posts
Mark Hamstra
Reply #2,
15 years, 4 months ago
Revolution:
[[!+modx.user.id:notempty=`<a href="[~[*id*]~]&service=logout">logout</a>`]]
For Evolution you can probably do something similar with phx.
Mark Hamstra
• Developer spending his days working on
Premium Extras
and a
MODX Site Dashboard with the ability to remotely upgrade MODX and extras
to make the MODX world a little better.
Tweet me @
mark_hamstra
, check my infrequent blog at
markhamstra.com
, my slightly more frequent ramblings at
MODX.today
or see code at
Github
.