We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27747
    • 1 Posts
    Hi everyone - Newbie here so please excuse me!

    I’m trying to password protect a section of the site for web users with a username and password.

    I’ve created the page (resource) and resource group and the web user and the user group, and I’ve linked the usergroup with the resource group.

    I copied and pasted the HTML from the WebLogin chunk into a seperate Login page so I have created a page that I can put login information into. However, I don’t know how to breathe life into the page ie. to make a legitimate web user go to the restricted page upon correct login. I suspect it’s something to do with the WebLogin snippet, but I think it’s a bit more complicated than copying and pasting it into my page?

    Any help will be really appreciated.

    Thanks!

    SD
      • 22427
      • 793 Posts
      You have to insert a WebLogin snippet call into your template like this:
      [!WebLogin? &logouttext=`Logout` &loginhomeid=`11` &logouthomeid=`22`!]

      There 11 and 22 stand for the document IDs of the pages you want the user to land if he has logged in successfully (11) or not (22).