Skip to content

Commit

Permalink
Fix SilverStripe framework version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Jan 30, 2017
1 parent fee4c1c commit ccb2ad7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Tiled GridField for SilverStripe 3
==================================
Tiled GridField for SilverStripe
================================

Inline/tiled images in a standard SilverStripe GridField table.

Expand All @@ -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);
Expand All @@ -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);
```
```
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"issues": "https://github.com/axllent/silverstripe-tiled-gridfield/issues"
},
"require": {
"silverstripe/cms": ">=3.1"
"silverstripe/cms": "^3.1"
}
}
}

0 comments on commit ccb2ad7

Please sign in to comment.