Hi,
I'm using the ss3 gallery module on my silverstripe project and i'd like to know if is it possible to create many folders than can own pictures.
This is my situation :
- I have a project page holder which allows some project pages
- I have some project pages with some data and some pictures
When i create a new project page and that i add some pictures, the pictures go in the asset/bulkUppload folder, the problem is this folder own all my projects pages pictures. I'd like to create a picture folder by project page so when for example i have to display my project page info, i can find easily its pictures ans display them
Does anyone have a clue of how it'd be possible?
Thanks, Thomas
If your images are being uploaded in a bulkUpload
folder it is likely that this module uses the GridFieldBulkEditingTools
module (https://github.com/colymba/GridFieldBulkEditingTools).
If this is the case, you can add this line for each GridFieldConfig
:
$config->getComponentByType('GridFieldBulkImageUpload')->setConfig( 'folderName', 'gallery/'.$this->ID );
This would save the images in numbered subfolders for each page under assets/gallery
. But you can change 'gallery/'.$this->ID
to whatever you want...