We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41131
    • 5 Posts
    So i've got a site all set up in modx but i'm a bit stuck on this lil problem.

    I have a navigation menu that works but i want to add some option for logged in guests to my site. Such as if there are no guests logged in then go to page 1 and if they are logged in go to page 2 instead.

    Does anyone know how to accomplish this with in modx? I was thinking about adding a cookie checker in an if command, like if logged in then go here, else go there instead. But i was just checking if i can do this in modx instead and make my life easier lol.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Just make page 2 your site_start page, and page 1 your unauthorized page. If they're logged in, they'll go to page 2, if not they'll get page 1. These pages are defined (as well as the error 404 page) in the System Settings.
        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