We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8416
    • 173 Posts
    Hello,
    I’d like to create a hyperlink on a main page such as "Welcome [User Login]" that would invoke a popup window containing "FormLogin" for instance. Then if the user logs in successfully, the hyperlink would be updated as "Welcome user [Logout]".

    What is the best way to do that in MODx? I can create a chunk to invoke my login popup and then invoke the snippet [!WebLogin? &tpl=`FormLogin` &logouthomeid=`2`!] but how can I update the hyperlink on the main page to reflect that the user has logged in successfully?

    Thanks for helping out a newbie in MODx....