On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi all,

    I know this is a simple thing to do but i can’t for the life of me get it to do what i want.
    I have a the following pages: HOME | SERVICES | ABOUT | PRICE LISTS | CONTACT US (very basic setup)
    The PRICE LISTS page is only shown, when a web user assigned to the Sales group, is logged on, otherwise it is permanently hidden form the public. This is working fine.

    I simply need the user to be redirected to a User Profile page when they log-on and also redirected to a Log-out page when they log-out.
    Simple enough but i am getting mixed results.

    Currently if the user log’s on it re-directs OK.
    If the user is on the ABOUT page and logs-out the it stays on the ABOUT page
    If the user is on the PRICE LIST page (which is secured) and logs-out then it redirects to the log-in page and not the specified log-out page.

    I am using this:
    [[WebLogin? &loginhomeid=`233` &logouthomeid=`234`]]

    Oh, and another thing it does is when a user logs-out the PRICE LIST menu item remains visible but when you click in it it takes you to the log-in page...is there a way to automatically hide the PRICE LIST page when a user logs-out?

    • You need to make the snippets involved be uncached. [! ... !] otherwise you’ll just get the cached versions from when the page was first viewed.
        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
      • Ok got it.

        All works now smiley

        Thank you