Hi all! Please, help.
I have 2 usergroups, I want to show specified menu list to the specified group? How can I do this?
Thank’s.
-
MODX Staff
- 12,272 Posts
Use the MemberCheck snippet that’s new with 0.9.1.
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 you have certain usergroups, and your documents are in the corresponding docgroups, the users of usergroup one will only see the menu of the documents in docgroup 1.
So you would have user groups one and two, and docgroups one and two. Connect docgroup one to usergroup one, and docgroup two to usergroup two.
Now set all documents that you want usergroup one users to see to be in docgroup one, and all documents that you want usergroup two to see in docgroup two. Any documents you want both to see can be put in both docgroups.
-
MODX Staff
- 12,272 Posts
FYI Soccerfan, if you do use the Membercheck snippet, you need to also set the usergroups for the "private" pages you want protected so people don’t enter that location directly.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me