Quote from: sottwell at Dec 03, 2015, 05:39 PMHave you considered using Teleport or Vapor to package your prepared starter site?
Yes, I have seen these and thought about it, but haven't tried them.
My goal is to have a package or more provided to a server via an service-provider (which is a whole new issue by itself).
With Teleport or Vapor I haven't seen the possibility of creating a
real MODx-Package.
That's why I decided that using the classic approach with a
simple building process would probably fit best.
Quote from: sottwell at Dec 03, 2015, 05:39 PMOr looked at BobRay's MyComponent?
I've looked at many examples, including BobRay's MC, but none obviously show it.
So I searched around and came to the glorious idea of looking up the
core.
In
transport.core.media_sources.php the default media-source is created.
My code will probably now go something like this:
$sources[$i]= $modx->newObject('sources.modMediaSource');
$sources[$i]->fromArray(array (
'id' => 1,
'name' => 'Filesystem',
'description' => '',
'class_key' => 'sources.modFileMediaSource',
'properties' => array(),
), '', true, true);
Thanks for your support and the love tap
[ed. note: sebastian-marinescu last edited this post 8 years, 3 months ago.]