Hello,
I defined a Page to which the Managementuser is Linked after the login. This works fine by setting this options in the manager.
My question is:
Is there a possibility to call this (user specific) page on the Website. E.g. [+startId+] or something like this?
Greetings
Breen
-
☆ A M B ☆
- 24,524 Posts
If we’re talking manager users here, weblogin doesn’t come into the picture. I had thought that perhaps that value was saved in the manager’s SESSION, but it’s not. It would take a snippet with a query to the database to get the value for the logged-in user. It can be retrieved from the user_settings table; the manager_login_startup value.
So you could create a snippet that gets that from the database and saves it to a placeholder ($modx->setPlaceholder()), then make sure that snippet is called before the placeholder is inserted. Or you could even make it into a plugin, setting the placeholder on the OnManagerLogin event.
Thanks for the answers, sounds a bit complicated, but I ’ll have a try ...
Has someone done a snippet like that, yet?