diff --git a/code/PhotoGalleryPage.php b/code/PhotoGalleryPage.php index dab8b1d..4398845 100644 --- a/code/PhotoGalleryPage.php +++ b/code/PhotoGalleryPage.php @@ -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'); diff --git a/composer.json b/composer.json index c769db2..50a8337 100644 --- a/composer.json +++ b/composer.json @@ -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": "*" } } \ No newline at end of file