We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Is "mobile" a resource? A context?
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 18817 ☆ A M B ☆
      • 205 Posts
      Quote from: sottwell at Jan 22, 2014, 01:44 PM
      Is "mobile" a resource? A context?

      It's a resource in the 'web' context. Basically it's 2 pages that I need gated with the Login form. The forms are now working as you'd expect; however, navigating to the /mobile resource results in a 404 vs. sending the user to the login page /logins/mobile-login.html
        Sal Baldovinos
        SEO & DIGITAL MARKETING

        ARIEL DIGITAL | Maximize Your Potential
        www.arieldigitalmarketing.com
        • 10378
        • 375 Posts
        Quote from: mayhemchaos at Jan 22, 2014, 02:08 PM
        Quote from: sottwell at Jan 22, 2014, 01:44 PM
        Is "mobile" a resource? A context?

        It's a resource in the 'web' context. Basically it's 2 pages that I need gated with the Login form. The forms are now working as you'd expect; however, navigating to the /mobile resource results in a 404 vs. sending the user to the login page /logins/mobile-login.html

        If you open the /mobile Resource in Manager and click on "View" - what happens?
          Freelancer @bitego http://www.bitego.com
          ---
          GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
          More infos here: http://www.bitego.com/extras/goodnews/
          • 18817 ☆ A M B ☆
          • 205 Posts
          Quote from: gadgetto at Jan 22, 2014, 02:44 PM
          If you open the /mobile Resource in Manager and click on "View" - what happens?

          When logged into the Manager, clicking "view" opens in a new window as a 401 Unauthorized.

          When NOT logged into the manager, I get 404
            Sal Baldovinos
            SEO & DIGITAL MARKETING

            ARIEL DIGITAL | Maximize Your Potential
            www.arieldigitalmarketing.com
            • 10378
            • 375 Posts
            Quote from: mayhemchaos at Jan 22, 2014, 02:47 PM
            Quote from: gadgetto at Jan 22, 2014, 02:44 PM
            If you open the /mobile Resource in Manager and click on "View" - what happens?

            When logged into the Manager, clicking "view" opens in a new window as a 401 Unauthorized.

            When NOT logged into the manager, I get 404

            Have you configured the error_page the unauthorized_page and the site_unavailable_page property in MODX system settings?

            Did you add the /mobile Resource to a resource group - so only authorized users will have access?

            It seem you have a more general problem with your MODX configuration and not with the Login add-on.
              Freelancer @bitego http://www.bitego.com
              ---
              GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
              More infos here: http://www.bitego.com/extras/goodnews/
              • 18817 ☆ A M B ☆
              • 205 Posts
              Quote from: gadgetto at Jan 22, 2014, 02:54 PM

              Have you configured the error_page the unauthorized_page and the site_unavailable_page property in MODX system settings?

              Did you add the /mobile Resource to a resource group - so only authorized users will have access?

              It seem you have a more general problem with your MODX configuration and not with the Login add-on.

              I have configured those to go to my custom 404/401 pages. However, if I have 2 login forms going to 2 unique IDs (the forms themselves are not different; same login creds, different pages to go to) - how would I set up the error page/unauth page?
                Sal Baldovinos
                SEO & DIGITAL MARKETING

                ARIEL DIGITAL | Maximize Your Potential
                www.arieldigitalmarketing.com
                • 10378
                • 375 Posts
                Quote from: mayhemchaos at Jan 22, 2014, 03:22 PM
                - how would I set up the error page/unauth page?

                In MODX system settings. If you don't configure which Resource MODx should load if a user isn't authorized - it will show the 404 page - I think.
                  Freelancer @bitego http://www.bitego.com
                  ---
                  GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
                  More infos here: http://www.bitego.com/extras/goodnews/