PoC for SilverStripe assets gallery
JavaScript PHP CSS Gherkin
Latest commit c061e1b Feb 23, 2017 @tractorcow tractorcow committed on GitHub Merge pull request #386 from open-sausages/pulls/4.0/panel-too-big
Fix editor panel is too large for smaller screens
Permalink
Failed to load latest commit information.
.tx Updated transifex reference May 10, 2016
_config API shifted mutations to actions property Feb 22, 2017
client Merge pull request #386 from open-sausages/pulls/4.0/panel-too-big Feb 22, 2017
code Fix code standard formatting Feb 22, 2017
docs/en Add unit tests for components Mar 2, 2016
lang Update translations Jan 17, 2017
templates/SilverStripe/AssetAdmin ENHANCEMENT Enable UploadField.js within non-react sections (#331) Dec 19, 2016
tests Fix fixture date strings Feb 21, 2017
.editorconfig API Implement FileField as a react file management field Nov 24, 2016
.eslintignore Added client/lang to .eslintignore May 10, 2016
.eslintrc Enforce JS var declaration with value Sep 21, 2016
.gitattributes BUG Fix install with prefer-dist breaking Mar 31, 2016
.gitignore Switch build system to webpack (#249) Sep 16, 2016
.sass-lint.yml Switched to SASSLint Sep 26, 2016
.scrutinizer.yml Removed code coverage reporting Jan 21, 2016
.travis.yml Use GraphQL/Apollo in AssetAdmin (fixes #316) Dec 22, 2016
LICENSE Fix LICENSE naming (to have it picked up by shields.io) Apr 25, 2016
README.md Added Helpful Robot badge May 21, 2016
_config.php Update path names Jan 25, 2016
behat.yml Use GraphQL/Apollo in AssetAdmin (fixes #316) Dec 22, 2016
changelog.md Update changelog May 12, 2016
code-of-conduct.md Added GridField functionality + made supported Jan 21, 2016
composer.json BUG Fix minimum core dependencies to ^4@dev Jan 31, 2017
contributing.md Move all files from asset-admin temp folder into the module (Excl lan… Jan 21, 2016
npm-shrinkwrap.json API shifted mutations to actions property Feb 22, 2017
package.json API shifted mutations to actions property Feb 22, 2017
phpunit.xml Added GridField functionality + made supported Jan 21, 2016
webpack-dev.config.js API - Added griddle-react module Dec 11, 2016
webpack.config.js API shifted mutations to actions property Feb 22, 2017

README.md

Asset Gallery Field

Build Status Code Quality Code Climate Version License helpfulrobot

Example

/**
 * @return FieldList
 */
public function getCMSFields() {
    $fields = parent::getCMSFields();

    $fields->addFieldToTab(
        'Root.Main',
        $galleryField = new AssetGalleryField(
            $name = 'Files'
        )
    );

    $galleryField->setCurrentPath("my-image-folder"); // relative to assets

    return $fields;
}

Installation

$ composer require silverstripe/asset-admin

You'll also need to run dev/build.

Documentation

See the docs/en folder.

Versioning

This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with public visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep protected methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.

Reporting Issues

Please create an issue for any bugs you've found, or features you're missing.