Skip to content

Commit

Permalink
GalleryImage - update upload path (#54)
Browse files Browse the repository at this point in the history
closes #45

re: add existing - I’m not able to find anything in the docs for this, but will keep an eye out for it. Ideally it would open to the upload folder
  • Loading branch information
jsirish committed Jan 6, 2018
1 parent 0faf783 commit 851f2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/GalleryImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getCMSFields()
'SortOrder',
'PhotoGalleryID',
));
$image = $fields->dataFieldByName('Image')->setFolderName('Uploads/Blocks/PhotoGallery/');
$image = $fields->dataFieldByName('Image')->setFolderName('Uploads/Elements/PhotoGallery/');
$fields->insertBefore($image, 'Content');

// so if anything depends on PageLink it doesn't flake out
Expand Down

0 comments on commit 851f2cf

Please sign in to comment.