We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4103
    • 11 Posts
    Hi,

    I have a small problem. I tried to search but did not find a suitable solution for this.
    Lets say I have a Registration link in wayfinder on home page. If the user login is successful there is no point to register so that item should hide itself. How do I do this?

    The actual problem involved roles, but I hope once I can understand the above, I will be able to do this.

    Brijesh
    Senior Software Development Engineer
    http://www.aquevix.com

      • 4103
      • 11 Posts
      No reply?
      Can anybody help.
        • 3749
        • 24,544 Posts
        The Personalize snippet will show one chunk to logged-in users and another to the rest. You can put the Wayfinder tags in two separate chunks and show the appropriate one with Personalize. Use &excludeDocs to hide the menu choice on the logged-in menu.

        BTW, another approach is to take the Register page out of the menus entirely and just put it as a link on the login page. Users who haven’t logged in can either be automatically redirected to the login page or can see a Login/Logout link on every page, put there with the Personalize snippet.

          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting