2017 © Pedro PelĂĄez
 

silverstripe-module silverstripe-upload-folder-select-handler

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder()(if set).

image

innoweb/silverstripe-upload-folder-select-handler

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder()(if set).

  • Wednesday, May 9, 2018
  • by xini
  • Repository
  • 2 Watchers
  • 1 Stars
  • 327 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 18 % Grown

The README.md

SilverStripe default file select folder

This is an archived project and is no longer maintained. Please do not file issues or pull-requests against this repo. If you wish to continue to develop this code yourself, we recommend you fork it or contact us., (*1)

Version License, (*2)

Overview

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder() (if set)., (*3)

SilverStripe 3.2 introduced a new default behavior for UploadField that shows files in all folders by default when "Select from files" is selected., (*4)

Now, if you tried to keep the assets tidy in the past, you have probably used 'setFolder()' on your UploadFields to define a folder within assets where your particular files should be uploaded to. To let a user select files from that particular upload folder, you would now have to add 'setDisplayFolderName()' as well:, (*5)

UploadField::create('MyField')->setFolder('MyUploads')->setDisplayFolderName('MyUploads');

This module removes this extra step by automatically setting the display folder to the upload folder if that is defined for an UploadField., (*6)

SilverStripe 4 compatibility

This module will be obsolete by the changes introduced in this pull request (probably SS 4.2). There won't be a SS4 compatible version of this module., (*7)

Requirements

  • SilverStripe Framework ~3.2

Installation

Install the module using composer:, (*8)

composer require innoweb/silverstripe-upload-folder-select-handler dev-master

or download or git clone the module into a ‘upload-folder-select-handler’ directory in your webroot., (*9)

Then run dev/build., (*10)

License

BSD 3-Clause License, see License, (*11)

The Versions

09/05 2018

dev-master

9999999-dev http://github.com/xini/silverstripe-upload-folder-select-handler

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder()(if set).

  Sources   Download

BSD-3-Clause

The Requires

 

upload select silverstripe default folder

13/06 2017

1.0.2

1.0.2.0 http://github.com/xini/silverstripe-upload-folder-select-handler

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder()(if set).

  Sources   Download

BSD-3-Clause

The Requires

 

upload select silverstripe default folder

17/05 2017

1.0.1

1.0.1.0 http://github.com/xini/silverstripe-upload-folder-select-handler

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder()(if set).

  Sources   Download

BSD-3-Clause

The Requires

 

upload select silverstripe default folder

13/05 2016

1.0.0

1.0.0.0 http://github.com/xini/silverstripe-upload-folder-select-handler

Changes the default folder for choosing existing files through UploadField to the folder set with setFolder()(if set).

  Sources   Download

BSD-3-Clause

The Requires

 

upload select silverstripe default folder