I have a simple link called 'login'.
When you click on that you go to the resource with a loginform.
When logged in the link needs to say 'logout'.
How can I use phx to do this?
// When logged in show =`logout-link` else = `login-link`
Evolution user, I like the back-end speed and simplicity

It's not that simple for me.
That link is mainly Rev stuff. If I understand it good,
if ($modx->user->get('username') == '(anonymous)') {
/* user is not logged in */
}
But I can't use
get for Evo.
Evolution user, I like the back-end speed and simplicity

Try:
[[+modx.user.id:gt=`0`:then=`logout-link`:else=`login-link`]]
When a user is not logged in, the id is empty.
Codeplaza Webdesign: for professional websites at low cost
mmm... i found solution for Evo. It use validate $_SESSION['webValidated'].
What you need do? i ready make snippet for you, if project is it your personal site.
I will try Personalize.
@DonQuicky, I need it for Evo.
Evolution user, I like the back-end speed and simplicity

Yep, I saw it directly after my reply. You can solve it to upgrade to Revolution .... just kidding
Codeplaza Webdesign: for professional websites at low cost
Its not a private site.
I have in the uppercorner a link to the login page.
<a href="[~10~]">Login</a>
When someone is logged in, the link should change to:
<a href="[~10~]">Logout</a>
Evolution user, I like the back-end speed and simplicity
