<![CDATA[ Custom Media Source type documentation? - My Forums]]> https://forums.modx.com/thread/?thread=79351 <![CDATA[Re: Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-477120 tomahl Sep 09, 2013, 06:37 AM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-477120 <![CDATA[Re: Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-462975 Quote from: okyanet at Sep 17, 2012, 02:38 AM
I was looking for that recently and didn't find any. Best to check out the Amazon S3 implementation, or this one from Digital Butter:
https://github.com/digitalbutter/DropSource

Off topic but is the implementation from Digital Butter stable enough to use in production? Also, can anyone tell if there is an official Dropbox implementation planned ahead?]]>
tomahl Apr 15, 2013, 06:00 AM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-462975
<![CDATA[Re: Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437260 Quote from: sottwell at Sep 17, 2012, 11:55 AM
Suppose you're not making a package or anything like that; I just want to specify an external source for static resources. Or does a custom Media Source have to become a full-blown package?
If you are writing a driver to be able to interact with a specific storage service that is not already available as a Media Source type, i.e. filesystem, S3, then you are creating a custom Media Source class. For example, Digital Butter has created a Custom Media Source class for working with file on DropBox.

Whether or not you package it up or provide manual install instructions is up to you, but packages make maintenance easier for those using your extra.]]>
opengeek Sep 17, 2012, 08:01 AM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437260
<![CDATA[Re: Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437251 sottwell Sep 17, 2012, 06:55 AM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437251 <![CDATA[Re: Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437196
https://github.com/splittingred/Gallery/blob/develop/core/components/gallery/model/gallery/galleryalbumsmediasource.class.php

Note that your path to your model/ dir has to be in the extension_packages setting, like so:

[{"gallery":{"path":"[[++core_path]]components/gallery/model/"}}]

This will load your model on MODX load, allowing it to reference the custom media source type.]]>
splittingred Sep 16, 2012, 10:58 PM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437196
<![CDATA[Re: Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437192 https://github.com/digitalbutter/DropSource]]> okyanet Sep 16, 2012, 09:38 PM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437192 <![CDATA[Custom Media Source type documentation?]]> https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437179 sottwell Sep 16, 2012, 01:52 PM https://forums.modx.com/thread/79351/custom-media-source-type-documentation#dis-post-437179