Maybe this is a bit pie in the sky, but my team and I have a collection of snippets that we use on 95% of the sites we work on and I would love for them to be installable rather than the current “Create Snippet → Paste Code From Internal Documentation → Save Snippet” flow that we are using.
Even more ideal would be if we could use the repo url to add the package from the extras tab, but I know even less about how that works than I do transport packages. Interested to hear what y’all think!
The extra packman exists which allows you to pack a selection of templates, TVs, chunks, snippets and plugins into a single ZIP package. You can then just drag this ZIP into your package manager to install all of the components.
The version currently in the extras downloader does not work with MODX 3 - however - @halftrainedharry created an alpha version which works well. You can download it here.
Just drag that ZIP file into your site’s package manager and install it.
PackMan is the easiest solution to create a transport package. But it only runs in the MODX manager.
If you rather want to manage your “collection of snippets” in Git, then maybe have a look at GPM. This is the tool that is used for most MODX extras nowadays. But the setup and handling is more complicated than PackMan. I created a couple of videos on Youtube about the usage on Windows.
What I meant to say is that with PackMan you have to (manually) create all the snippets inside the manager of a MODX installation before you can create the package. And every time the code of a snippet changes, you have to make this change in the MODX manager.