The override for the paths in the testing environment was causing plugin tests to fail as the base plugin test class was pointing to the wrong plugin root.
I've changed it so the override is now only applied for the test(s) that need it.
Refs: https://github.com/wintercms/wn-redirect-plugin/pull/15#issuecomment-1510038828
This adds the sizeBytes & lastModified item attributes to the getItems() function in mediamanager.js exposing them for use in the onInsert() handler of the MediaManager popup.
Credit to @zaxbux
This PR introduces support for all mediamanager filters as modes for the mediafinder formwidget.
This means that the following mode values would be available:
image
file
document
audio
video
all (default)
For some reason, these were not true importable classes as they were using the global Snowboard variable, so they couldn't be used in custom Snowboard builds.
I've created two new build files that use the same names as the previous builds, so this should be BC, but the source files are now true classes so they can be imported at will.
Fixes https://github.com/wintercms/wn-blog-plugin/issues/33.
Note for @bennothommo @jaxwilko @mjauvin, we may have issues at some point if the replaced plugin goes past the version that the replacing plugin starts its replacement at (for example, if RainLab.Blog starts going past 2.0 then we're going to have to rethink how we handle that migration process so that we can support taking over existing migrations that go past 2.0 on the original plugin while starting the replacement plugin's migrations at 2.0, although there's potentially some issues with that too. Perhaps we could require confirmation to rollback a plugin to the last version that it could be taken over from before allowing the takeover to proceed?
This reverts 4ed9b10b4e because it breaks the use of local file disks. We will need to just bite the bullet and refactor the CMS storage config to use proper filesystem disks in general instead of the current hacky approach that's causing these problems.
See https://laravel.com/docs/10.x/filesystem#scoped-and-read-only-filesystems