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

    Just wondering if someone has something like a "framework" for an modx package install after a regular modx install.

    For example I always install the same snippets and plug-ins for all the new websites Eg: Get Field, Template Rules, Phx etc.

    I would like to have a file like addmore.php that when run will install the above resources.

    Hope it makes sense. Thx
      • 26931
      • 2,314 Posts
      Hey cipa,

      i think that’s already possible smiley http://modxcms.com/forums/index.php?topic=41882.0

      Installer
      The new MODx installer adds the time- and task-saving ability for developers to install MODx with their favorite and customizations of the Add-ons it handles.. Simply drop your snippets, chunks, plugins and modules into the relevant directories as .tpl files, add a phpDocs formatted header, and the installer automatically presents the choices for you to install the Elements directly into the MODx database. The 1.0.2 installer corrects an issue in the previous release that could lose the content type/disposition for non-admin users. The upgrade script should correct these during the installation routine.

      The MODx installer supports multiple languages including RTL languages, while installing the main application in the same or an alternate language. (The default language can be overridden a per-user basis in the Manager.)
        • 25803 ☆ A M B ☆
        • 721 Posts
        Quote from: cipa at Jan 05, 2010, 01:08 PM

        Hi,

        Just wondering if someone has something like a "framework" for an modx package install after a regular modx install.

        For example I always install the same snippets and plug-ins for all the new websites Eg: Get Field, Template Rules, Phx etc.

        I would like to have a file like addmore.php that when run will install the above resources.

        Hope it makes sense. Thx

        You can do this now with Evo 1.0.2. Have a look at the snippets, chunks, modules, and plugins that are in the install folder of the default MODx install to see how you can add your own as .tpl files. I’ve done a number of sites already using this method. Regrettably there is not yet any easy method do preinstall template variables.
          • 20413
          • 2,877 Posts
          About phpDocs formatted header in the .tpl’s

          Is there any more guidelines somewhere?

          http://phpdocu.sourceforge.net/howto.php !?
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower