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

    Im sorry to ask this, It’s probably written somewhere but I can’t find it, how do I do so only logged in users via weblogin can access certain pages/text on pages?

    Thanks
      • 6726
      • 7,075 Posts
      A good way to understand how it’s used is look at the default content & default template...

      1) You have to insert the WebLogin snippet in your template, where you want a login box displayed. You have to set a few parameters : the page where you want the user to land after login, the page where you want the user to land after logout and the template chunk you want to use if not using default... for the other options check the bundled documentation of the snippet.

      Sample :

      [!WebLogin? &loginhomeid=`36` &logouthomeid=`0` &tpl=`FormLogin`!]



      2) You have to go to Users > Web permissions, then create user groups and document groups, and then associate users groups to documents groups to control access.

      You should be set !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 3022
        • 59 Posts
        Thanks David, great info!


        Bee