Is this possible? I’ve been playing around with ModX for the last few days now. However I cannot figure out how to make a menu (like the top navbar) appear only to registered users.
Is there a way to accomplish this?
-
☆ A M B ☆
- 24,524 Posts
Go to Security -> Web Permissions.
1. Create a web user group.
2. Create a document group.
3. Assign the document group to the user group.
In Security -> Web Users
4. Assign web users to the web user group.
Edit your documents and
5. Assign the documents to the document group.
Now only logged-in users belonging to that group will see the menu items, if you’re using Wayfinder to generate your menu.
If you want to display an entire block of your page only to registered users, see the MemberCheck snippet (it should be included in your Resources -> Manage Resources, Snippets tab). It will display a given chunk when a user belonging to the given group is logged in. That chunk can contain your menu, or anything else you want in the page for logged-in users.