Download the PHP package webfox/silverstripe-dropzone-sortable without Composer

On this page you can find all versions of the php package webfox/silverstripe-dropzone-sortable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-dropzone-sortable

Note:

Currently waiting on a pull request merge https://github.com/unclecheese/silverstripe-dropzone/pull/34 before this is
functional. Until this is merged if you would like to use this module then use the fork this pull request references.

Silverstripe Dropzone Sortable

This plugin allows drag/drop sorting via FileAttachmentField from the dropzone package.

Installation Instructions

Composer

Run the following to add this module as a requirement and install it via composer.

Setup

Setting up the Relation

We need a SortOrder column on the Image/File relation that FileAttachmentField is hooked onto.
For a has_many to a custom DataObject simply add the 'SortOrder' => 'int' and private static $default_sort = 'SortOrder'; to the DataObject.

If you are relating to Image or File directly then you will need a many_many setup with many_many_extrafields and an accessor to loop over in the template
<% loop $SortedImages>...<% end_loop %> or you can do <% loop $Images.Sort('SortOrder') %>...<% end_loop %>. This package will automatically sort the files in the FileAttachmentField.

Here is an example many_many setup:

``

Enabling Sorting

To enable sorting simply call ->sortable() on the FileAttachmentField e.g. FileAttachmentField::create('Images')->sortable()->imagesOnly();

Customization

The only customization available is changing the sort column. FileAttachmentField::create('Images')->sortable()->setSortableColumn('OtherSortColumn');


All versions of silverstripe-dropzone-sortable with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
silverstripe/cms Version ~3.2
unclecheese/dropzone Version 1.2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webfox/silverstripe-dropzone-sortable contains the following files

Loading the files please wait ....