-
- 2 Posts
I worked out the Logout problem:
The code:
<?php
# do the work
$user = $modx->getLoginUserName();
if ($user) {
---->>>> return ’<a href="[~10~]?webloginmode=lo">Logout ’ . $user . ’</a>’; <<<<----
} else {
return ’<a href="[~10~]">Login</a>’;
}
?>
I change the marked code line to:
return ’<a href="[~10~]&webloginmode=lo">Logout ’ . $user . ’</a>’;
I still don’t understand why the actual editor cannot edit.
Regards,
Darren