We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13730
    • 149 Posts
    Modx Revolution : 2.07
    PHP : 5.2.17
    MySQL : 5.0.92-community
    Login : 1.5.2

    Login form : id 14
    loginResourceId : id 19
    logoutResourceId : id 14

    My first language is French, I hope the following problem is explained properly.

    I test the «Making Member-Only Pages» without context, I follow all the instructions and it work like a charm, here my setting.

    [[!Login? &loginResourceId=`19` &logoutResourceId=`14` &tplType=`modChunk` &loginTpl=`loginRdaTpl`]]

    web context
    | login form (ID 14)

    member (folder)
    | resource 1 (ID 19)
    | resource 2
    | resource n


    But when I try the same thing with a context (with no new setting) in which resources are placed for members only, I can’t access the login resource (id 19) when I am login as a member (web user), it redirect me to my login page ID 14.

    [[!Login? &contexts=`secure` &loginResourceId=`19` &logoutResourceId=`14` &tplType=`modChunk` &loginTpl=`loginRdaTpl`]]

    Web context
    | login form (ID 14)

    secure context
    |
    member (folder)
    | resource 1 (ID 19)
    | resource 2
    | resource n

    Do I have to add new settings for this context (Ex: site_start, base_url… )? or the problem is something else?

    Thank you for your answers.