Permalink
Browse files

changed upload folder & made photos/albums sortable

  • Loading branch information...
1 parent 4fd5540 commit 18b207410837d23107a046b7b739e8c2623fd08f @andrewhoule committed Apr 13, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 PhotoAlbum.php
  2. +1 −1 PhotoGallery.php
  3. +4 −0 _config.php
View
@@ -19,7 +19,7 @@ class PhotoAlbum extends DataObject {
public function getCMSFields() {
$imagefield = new ImageUploadField('Photo');
$imagefield->removeFolderSelection();
- $imagefield->setUploadFolder('photo_gallery');
+ $imagefield->setUploadFolder('photogallery');
return new FieldSet(
new TextField('Name'),
View
@@ -37,7 +37,7 @@ function getCMSFields() {
'getCMSFields_forPopup' // Detail fields function or FieldSet
);
$PhotosManager->setAddTitle('Photo');
- $PhotosManager->setUploadFolder('photo_gallery');
+ $PhotosManager->setUploadFolder('photogallery');
$PhotosManager->setDefaultView('list');
$PhotosManager->setAllowedFileTypes(array('jpg','jpeg','png','gif'));
$PhotosManager->setUploadLimit('20');
View
@@ -0,0 +1,4 @@
+<?php
+SortableDataObject::add_sortable_class('PhotoItem');
+SortableDataObject::add_sortable_class('PhotoAlbum');
+?>

0 comments on commit 18b2074

Please sign in to comment.