diff --git a/README.md b/README.md index a045c5a..0465e5c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -Tiled GridField for SilverStripe 3 -================================== +Tiled GridField for SilverStripe +================================ Inline/tiled images in a standard SilverStripe GridField table. @@ -15,6 +15,11 @@ and it should be an image (thumbnail). The images should at least all be the sam Please note that if more than one `$summary_fields` is used then the layout will break. +## Installation +``` +composer require axllent/silverstripe-tiled-gridfield +``` + ## Example ```php $gridFieldConfig = GridFieldConfig_RecordEditor::create(200); @@ -33,4 +38,4 @@ $gridFieldConfig->addComponent(new GridFieldBulkUpload()); $gridFieldConfig->getComponentByType('GridFieldBulkUpload')->setConfig('folderName', 'Photos'); $gridField = new TiledGridField('AlbumImages', 'Album Images', $this->Photos(), $gridFieldConfig); $fields->addFieldToTab('Root.Main', $gridField); -``` \ No newline at end of file +``` diff --git a/composer.json b/composer.json index 5888fb0..66c5b5a 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,6 @@ "issues": "https://github.com/axllent/silverstripe-tiled-gridfield/issues" }, "require": { - "silverstripe/cms": ">=3.1" + "silverstripe/cms": "^3.1" } -} \ No newline at end of file +}