Download the PHP package silbinarywolf/silverstripe-contextawareupload without Composer
On this page you can find all versions of the php package silbinarywolf/silverstripe-contextawareupload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silbinarywolf/silverstripe-contextawareupload
More information about silbinarywolf/silverstripe-contextawareupload
Files in silbinarywolf/silverstripe-contextawareupload
Package silverstripe-contextawareupload
Short Description Automatic organization of uploaded files based on the site tree structure.
License BSD-3-Clause
Informations about the package silverstripe-contextawareupload
Context Aware Upload
This module will make the default upload folder match the URL structure of the page you're uploading in, rather than just uploading
to the Uploads
folder or the default-site
folder if you're using Multisites.
ie. If you upload a file to a page that can be visited at http://www.mysite.com/information/about-us, then that file will be available at http://www.mysite.com/assets/information/about-us/filename.jpg by default, rather than http://www.mysite.com/assets/Uploads.
Composer Install
Requirements
- SilverStripe 4.1+
- (Optional) Multisites
Documentation
- Quick Start
- License
- Contributing
Known limitations
Uploading files via a WYSIWYG field's "Insert Media" button or anything else using the AssetAdmin view will not be affected by this module. I'm hoping this issue will be fixed in the future, and it's been logged here: https://github.com/silverstripe/silverstripe-assets/issues/159
In the meantime however, you can optionally apply an extension so that any files uploaded to the root folder of assets, gets moved into the desired folder. ie. if File::ParentID == 0, move to default folder.
Credits
- Jake Bentvelzen for the initial build.