We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    Here’s a sample or template of the modx installer that can be used to install chunks, snippets, templates, plugins and modules.

    I had some problems when trying to upload it to the SVN. I go some error message about Method not allowed.

    Be sure the modify the setup.info.inc.php file when creating your install packages


      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 25663 MODX Staff
      • 12,272 Posts
      Could this by chance be added to the manager itself? We could then define a "package" format and just allow the installer to do it’s thing when you’re logged into the manger. Just a thought to minimize redundant/repetive downloads.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 32963
        • 1,732 Posts
        Quote from: rthrash at Aug 28, 2005, 04:55 PM

        Could this by chance be added to the manager itself? We could then define a "package" format and just allow the installer to do it’s thing when you’re logged into the manger. Just a thought to minimize redundant/repetive downloads.

        Sure can but I’ll not be able to do that for TP3.3. Maybe someelse can get this going?

          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Wonderful! Just what I’ve been needing to help my non-programmer partner help me get sites up and customised quickly!

          Looking at it, looks like it wouldn’t be too difficult to integrate it. Would require the module/plugin/snippet whatever developer to use a specific folder layout and naming convention, and supply a .info file with a specific format supplying information, and the installer reads the supplied .info file and replaces all those {...} all by itself. Change the interface to match Manager, and create a new menu item in 2.php, add a new action (static?) that scans the /manager/modules folder...I can see this expanding rapidly into a comple module management system! It could even just require the upload of a zip file, and would unzip and manage the whole installation, configuration, removal, deletion lifecycle process. Darn. This would be fun, but my partner is hot on the trail of making some money and I’ve got too much to do by myself as it is. <sigh> If only the common Israeli misconception that all Americans are rich were true...
            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
            • 34162
            • 1 Posts
            In my opinion, with the current way of codes are imbeded in the database it is rather involved to create a unified installer to make it works cleanly and efficiently.

            It would be nicer to the code in the file system and the install only insert records of referencing those addons.

            With the code in the installer you can implement XML and domit parser without have to edit the setup.info.php instead just edit application.xml.

            Just me 2 cents!
              • 32963
              • 1,732 Posts
              Quote from: chanh at Aug 29, 2005, 09:32 AM

              With the code in the installer you can implement XML and domit parser without have to edit the setup.info.php instead just edit application.xml.

              Just me 2 cents!

              Version 2.0 of the installer will support a visual interface. It will be very easy for you to create your install packages and it will support xml file format and system events for the installs. For example, the OnInstallComplete event will be triggered at the end of the install.

                xWisdom
                www.xwisdomhtml.com
                The fear of the Lord is the beginning of wisdom:
                MODx Co-Founder - Create and do more with less.
                • 34162
                • 1 Posts
                Raymond,

                So if I want to play around with the current version of the installer how would I go about install it into Modx?

                Thanks
                  • 32963
                  • 1,732 Posts
                  Quote from: chanh at Aug 29, 2005, 10:35 AM

                  Raymond,

                  So if I want to play around with the current version of the installer how would I go about install it into Modx?

                  Thanks

                  The current version does not support any visual interface for adding modules,snippets, etc to the setup.info.php file. This would have to be done manually or an interface screen be made to allow usres to add such to the setup.info.php file.

                  You could create such an interface that you can use to select modules, snippets, plugins and templates and then create the setup.info.php on the fly.

                    xWisdom
                    www.xwisdomhtml.com
                    The fear of the Lord is the beginning of wisdom:
                    MODx Co-Founder - Create and do more with less.
                    • 34162
                    • 1 Posts
                    I am not looking for a visual interface on the current version that you provided. I am just trying to understand what you have done and how to use it.

                    Thanks
                      • 32963
                      • 1,732 Posts
                      Quote from: chanh at Aug 29, 2005, 11:08 AM

                      I am not looking for a visual interface on the current version that you provided.  I am just trying to understand what you have done and how to use it.

                      Thanks

                      Ok,

                      Have a look at the setup.info.php file it will show you how to setup your modules, plugins, etc for installation. You might also want to have a look at the setup.info.php that comes with MODx TP3
                        xWisdom
                        www.xwisdomhtml.com
                        The fear of the Lord is the beginning of wisdom:
                        MODx Co-Founder - Create and do more with less.