We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
      • 30497
      • 245 Posts
      ok guys, I got the revolution beta. I am keen to get started on this multi-domain environment, but the implementation of "contexts" is unclear (to me). My proposed scenario is this:
      domain1.com
      domain2.com
      blog.domain2.com

      All managed from a single database, a single manager interface. A different context for each of these (sub)domains.

      I can create new contexts, but I see no way in the manager to define their settings, i.e., which domain the context belongs to. How is this done, and is there supposed to be a manager interface for this?
        • 30497
        • 245 Posts
        Quote from: towerofbabel at Jun 02, 2009, 12:42 AM

        ok guys, I got the revolution beta. I am keen to get started on this multi-domain environment, but the implementation of "contexts" is unclear (to me). My proposed scenario is this:
        domain1.com
        domain2.com
        blog.domain2.com

        All managed from a single database, a single manager interface. A different context for each of these (sub)domains.

        I can create new contexts, but I see no way in the manager to define their settings, i.e., which domain the context belongs to. How is this done, and is there supposed to be a manager interface for this?

        anyone? I can’t find any documentation on this.
          • 28215
          • 4,149 Posts
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 30497
            • 245 Posts
            Quote from: splittingred at Jun 03, 2009, 08:21 AM

            http://svn.modxcms.com/docs/display/revolution/Using+One+Gateway+Plugin+to+Manage+Multiple+Domains

            thanks. Something is missing here though, either with me or with the instructions.

            I took the "second method" outlined here.

            1. I copied index.php, core.config.php and ht.access (i have url rewriting turned off in order to simplify the process) to a new subdirectory in my local host.

            2. I changed the line in the new instance of index.php to

            $modx->initialize('web2');


            this corresponds with the name of my second context "web2".

            3. trying to access the "new" domain, I get a 404 error.


              • 30497
              • 245 Posts
              Quote from: towerofbabel at Jun 03, 2009, 08:34 AM

              Quote from: splittingred at Jun 03, 2009, 08:21 AM

              http://svn.modxcms.com/docs/display/revolution/Using+One+Gateway+Plugin+to+Manage+Multiple+Domains

              thanks. Something is missing here though, either with me or with the instructions.

              I took the "second method" outlined here.

              1. I copied index.php, core.config.php and ht.access (i have url rewriting turned off in order to simplify the process) to a new subdirectory in my local host.

              2. I changed the line in the new instance of index.php to

              $modx->initialize('web2');


              this corresponds with the name of my second context "web2".

              3. trying to access the "new" domain, I get a 404 error.

              Further, when I "Preview" the document from the manager, it launches the page under the original context, not under "web2", even though it resides under "web2" in the document tree.
                • 5576
                • 31 Posts
                I want to do the same thing as towerofbabel and I’m running into exactly the same problem, is there any progress on this?
                  bringing MODx to the hispanians
                  • 28215
                  • 4,149 Posts
                  Jason is our architect on Context support - he is moving and will be back in Friday.
                    shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                    • 3749
                    • 24,544 Posts
                    I seem to recall seeing a tab or accordion section for Context settings but I sure can’t find it now. huh

                    I can’t find "User Settings" either.
                      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
                      • 28215
                      • 4,149 Posts
                      Quote from: BobRay at Jun 03, 2009, 04:08 PM

                      I seem to recall seeing a tab or accordion section for Context settings but I sure can’t find it now. huh

                      I can’t find "User Settings" either.

                      Context Settings: "System" => "Contexts" => right-click on context and click "Update Context" => see the settings grid

                      User Settings: "Security" => "Manage Users" => right-click on user and click "Update User" => "Settings" tab
                        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com