-
- 12 Posts
I’am working on an intranet where every client, when he’s logged in, has its own directory and subdirectories. How do I manage to let WayFinder generate a menu for these directories.
for example when client-B is logged-in then I want wayfinder to generate only the client-B menu
INTRANET
client-A
client-A.1
client-A.1.1
client-A.1.2
client-A.2
client-A.2.1
client-A.2.2
client-B
client-B.1
client-B.1.1
client-B.1.2
client-B.2
client-B.2.1
client-B.2.2
client-C
client-C.1
client-C.1.1
client-C.1.2
client-C.2
client-C.2.1
client-C.2.2
I hope someone has a solution for my problem
thanks,
Roderik
-
- 24,544 Posts
The Personalize snippet will show one of two different chunks depending on whether the user is logged in or not. You could put a generic Wayfinder menu in the not-logged-in chunk.
http://modxcms.com/Personalize-2.0-871.html
In the logged-in-chunk, I think you’d need to put a custom snippet that gets the user’s id and builds a custom Wayfinder call based on that. You might need a table with each user’s id and the document id of their home directory.
Someone else may know an easier way.
Bob
-
- 24,544 Posts
I should also mention that when you create web users, you can specfy their login home page. They’ll automatically be directed to this page on login.
If you have a home page for each user, make it a container document, and put the user’s other documents below it, a simple Wayfinder menu on the users home page will show only their pages.
This won’t prevent them from seeing each other’s pages if they type the correct address into the browser address window. To keep them from seeing the other pages, you’d have to set up web user groups and permissions for each user and all pages (one user group per user).
This would probably be an easier solution if you don’t have too many users.