-
- 372 Posts
I would like to create a server images.example.com or files.example.com and upload most of my static resources. That way I would have permanent file paths no matter how the real site changes.
I can't figure how to set it up, and I can't find any packages that will allow it to happen.
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
Static Resources only work from within the server's file system. You can load them from outside of the web root. For example, on my Mac I can server a file like "/Users/sottwell/Desktop/Patterns/Needlework/Afghans/Crochet/Sampler.pdf" when my web root is "/Applications/MAMP/htdocs/".
Static Resources do not themselves recognize Media Sources. The Manager form will allow using a Media Source for selecting a file, but the Static Resource does not store any information on the media source used nor the media source's base path.
You can, however, use a Weblink to link to files in an external server. Create a binary content type, application/pdf, .pdf, and set the Weblink to use that type and have a content-disposition of Attachment.
-
- 372 Posts
I would like to use a media source for my image library, but future proof the image paths. I want one source for logos and images that I can use now before I create my modx site and when the modx site if launched to be able to use those same images.
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
I have used a free Amazon S3 account; it works very well with the default Amazon S3 media source driver that comes with a MODX installation, although their free account is somewhat limited.
-
- 24,544 Posts
If you can use Amazon S3, you should be able to create a media source that uses your own server to serve up files and images.
You'd need to create a custom media source driver, which probably isn't all that easy, but there are some clues here:
http://forums.modx.com/thread/79351/custom-media-source-type-documentation
There's some info here on using DropBox:
https://www.markhamstra.com/modx/2012/01/bringing-dropbox-to-media-sources/