Skip to content

Commit

Permalink
Added GridFieldGalleryTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
purplespider committed Mar 5, 2014
1 parent 1b0b005 commit 4614ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/PhotoGalleryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getCMSFields() {

$gridFieldConfig = GridFieldConfig_RecordEditor::create();
$gridFieldConfig->addComponent(new GridFieldBulkImageUpload());

$gridFieldConfig->addComponent(new GridFieldGalleryTheme('Image'));
$gridFieldConfig->getComponentByType('GridFieldBulkImageUpload')->setConfig('folderName', "Managed/PhotoGalleries/".$this->ID."-".$this->URLSegment);

$gridFieldConfig->removeComponentsByType('GridFieldPaginator');
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"silverstripe/framework": "~3.1",
"silverstripe/cms": "~3.1",
"undefinedoffset/sortablegridfield": "*",
"colymba/gridfield-bulk-editing-tools": "*"
"colymba/gridfield-bulk-editing-tools": "*",
"colymba/gridfield-gallery-theme": "*"
}
}

0 comments on commit 4614ff9

Please sign in to comment.