Lets say I have a Menu-bar subitem called: Register - Now obviously if a user is logged in they wouldn’t need to see this. Is there a way to hide it?
-
MODX Staff
- 12,272 Posts
Try the MemberCheck snippet.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
If it’s part of the login snippet (it can be a placeholder, so they don’t need to be together on the page) then when the user is logged in, the logged-in display won’t show the login form or the registration link. I believe you can look at the default WebLoginPE form for an example.