Try using `empty` instead of `null`.
-
MODX Staff
- 10,725 Posts
Also, make sure you are not using the same browser session you are using for the manager. The user id will always be ’0’ if no one is logged in. Also note, the manager user session is inherited by the front-end contexts if you are not logged into the front-end explicitly in the same browser session.
-
☆ A M B ☆
- 3,141 Posts
Other option:
[[!+modx.user.id:eq=`0`:then=`<a href="[[~7]]">Registrera konto</a>`:else=`<p>[[!+modx.user.username]]</p>`]]
(untested)