From 4614ff9f702531b9956123a69a864bb9f4af959d Mon Sep 17 00:00:00 2001 From: James Cocker Date: Wed, 5 Mar 2014 14:30:38 +0000 Subject: [PATCH] Added GridFieldGalleryTheme --- code/PhotoGalleryPage.php | 2 +- composer.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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