PHPackages                             webfox/silverstripe-dropzone-sortable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. webfox/silverstripe-dropzone-sortable

AbandonedArchivedSilverstripe-module

webfox/silverstripe-dropzone-sortable
=====================================

A Silverstripe extension to add drag/drop sorting to FileAttachmentField

v1.0.2(10y ago)28623[1 issues](https://github.com/webfox/silverstripe-dropzone-sortable/issues)[3 PRs](https://github.com/webfox/silverstripe-dropzone-sortable/pulls)MITPHPPHP &gt;=5.4

Since Nov 24Pushed 10y ago3 watchersCompare

[ Source](https://github.com/webfox/silverstripe-dropzone-sortable)[ Packagist](https://packagist.org/packages/webfox/silverstripe-dropzone-sortable)[ RSS](/packages/webfox-silverstripe-dropzone-sortable/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Note:
=====

[](#note)

> Currently waiting on a pull request merge [unclecheese/silverstripe-dropzone#34](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
=========================

[](#installation-instructions)

Composer
--------

[](#composer)

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

```
composer require "webfox/silverstripe-dropzone-sortable"

```

Setup
=====

[](#setup)

Setting up the Relation
-----------------------

[](#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
`...` or you can do `...`. This package will automatically sort the files in the FileAttachmentField.

Here is an example `many_many` setup:

```
class MyPage extends Page {

    private static $many_many = [
        'Images' => 'Image'
    ];

    private static $many_many_extraFields = [
        'Images' => ['SortOrder' => 'Int']
    ];

    public function getSortedImages(){
        return $this->Images()->sort('SortOrder');
    }
}
```

Enabling Sorting
----------------

[](#enabling-sorting)

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

Customization
-------------

[](#customization)

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

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Total

3

Last Release

3709d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89a3fc3149eeb34725cdbe81bee9adc4a9db23425ef3595a3a115a4f23c813ea?d=identicon)[foxbytehq](/maintainers/foxbytehq)

---

Top Contributors

[![hailwood](https://avatars.githubusercontent.com/u/709773?v=4)](https://github.com/hailwood "hailwood (4 commits)")[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (2 commits)")

---

Tags

silverstripesortablewebfoxdropzone

### Embed Badge

![Health badge](/badges/webfox-silverstripe-dropzone-sortable/health.svg)

```
[![Health](https://phpackages.com/badges/webfox-silverstripe-dropzone-sortable/health.svg)](https://phpackages.com/packages/webfox-silverstripe-dropzone-sortable)
```

###  Alternatives

[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

1001.8M215](/packages/symbiote-silverstripe-gridfieldextensions)[undefinedoffset/sortablegridfield

Adds drag and drop functionality to Silverstripe's GridField

921.2M50](/packages/undefinedoffset-sortablegridfield)[bummzack/sortablefile

An extension for SilverStripe that adds sorting to UploadField.

70606.0k51](/packages/bummzack-sortablefile)[unclecheese/silverstripe-kickassets

Provides an alternative file management interface for SilverStripe CMS with drag-and-drop, multi-selection, and several other desktop-like UI conventions.

4728.3k1](/packages/unclecheese-silverstripe-kickassets)[unclecheese/kickassets

Provides an alternative file management interface for SilverStripe CMS with drag-and-drop, multi-selection, and several other desktop-like UI conventions.

484.0k](/packages/unclecheese-kickassets)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
