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

    I'm using the Login-Plugin to get a member-only area.
    Right now I got a problem:
    Login is working, but it won't display the given resource-ID after login. My call:

    [[!Login? &loginTpl=`lgnLoginTpl_modal` &logoutTpl=`lgnLogoutTpl` &errTpl=`lgnErrTpl` &loginResourceId=`89` &logoutResourceId=`5`]]

    If I insert "89" as loginResourceID, resource 89 will be displayed after login, so the call itself should be ok. Resource "89" isn't member-specific, though, meaning it isn't in resource-gruop "members". If I enter "70" or "125" - both are existing, published resources, they have the right resource-group attended, - but instead of these resources there will be displayed resource "0". The URL-line though displays the right phrase, which is for ID 70 like "www.myhomepage.xz/members_home"...

    ADD: well - the pages id 70 and 125 are shown in the Wayfinder-Menu after the user logged in - but when clicked, they don't show up, instead resource "0" will be shown. Did I miss some configurations to Id 70 and 125?

    This question has been answered by BobRay. See the first response.

    [ed. note: calvair last edited this post 7 years, 1 month ago.]
      • 38783
      • 571 Posts
      Are you testing in the same browser that you using to login to the MODX Manager? If you are try testing the front-end site login in a different browser.
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
      • discuss.answer
        • 3749
        • 24,544 Posts
        Do you have multiple front-end contexts? If so you can add the &contexts property in the Login 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
          • 51824
          • 27 Posts
          Quote from: BobRay at Mar 07, 2017, 10:37 PM
          Do you have multiple front-end contexts? If so you can add the &contexts property in the Login snippet.

          Ouch... yes, I "try" to use babel (trying, because it doesn't work as expected, but this will be another post soon smiley )

          Well, now that I added the conctexts property with all three properties - web, english, svenska - it works!

          Thank you!
            • 3749
            • 24,544 Posts
            Glad I could help. smiley
              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
            • I have a similar issues of having a login with multiple contexts. The member section is only for one of the contexts thou. I have noticed that the issue of it not working is more related to friendly urls. As when they are disable every thing works....
              However when using friendly urls none of the snippets related to the login plug will work. Is this a issue with Friendly URL setup or HTACESS or an issue with the plugin.