We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4038
    • 21 Posts
    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
      • 27330
      • 884 Posts
      you mean like this ?:
      [[WebLogin? &loginhomeid=`8` &logouthomeid=`1`]] 
        • 28042 ☆ 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.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 4038
          • 21 Posts
          Thanks for the answers, sounds a bit complicated, but I ’ll have a try ...
          Has someone done a snippet like that, yet?