No, currently there is no way to set the base folder in your Page class. It is hardcoded in the AttachedFile.php.
Instead of creating subfolders, you could just change your grouping? Something like:
I noted the customizable folder thing as a feature request for a later release...
Hello it's me again . Found why extra variables were not working on the front end : I was actually having a conflict with the gallery module, that also has a dataobjectdecorator for the File object. Removing the DataObject::add_extension( 'File', 'GalleryFile' ); from /gallery/_config solved the issue but doesn't tell me how to use both extension on Silvesrtripe . I suppose we'd have to share the decorator ... I also wonder why the decorator instruction from mysite was used in the HasManyFileManager ... Anyway FileManager is much better than gallery for displaying image thumbnails isn't it ?
Ouch, bad news! Thanks for figuring that out (i placed it as a "known issue" in the README and i'll update the Documentation).
I'll install the Gallery Module on my local machine and try to find a solution. Maybe you could decorate the galleries decorator with the FileManager decorator (eg. DataObject::add_extension( 'GalleryFile', 'YourCustomFile' );) ? As far as i remember the Decorator Pattern, that should work actually...
On the other hand there's probably not a lot of people who will use both modules on one Site, since they can do similar stuff.
The good thing about the gallery is, that it already has frontend functionality (using Lightwindow). When using the HasManyFileManager, you are basically on your own when it comes to the appearance and functionality of your gallery. Some may like that (i do), others don't ;)
I try to use this module outside of the CMS. Has anyone done that before? I thought I would use it for the blog module so that blog users could make posts with several media files without touching/logging into the SS cms. I find this module very interesting, and if I were able to use it for my front as well, it would be marvelous.
I never tried that. I guess you'd have to change several things in order for it to work. I'm not really experienced with this kind of frontend stuff using SilverStripe. For now, i added it to my list of feature-requests.
this module is exactly what i was looking for since i began on SS. I do lots of slideshows and until now i used to have an imagepage class for each image so i could have the reordering drag n drop.
But i fell on a pb adding an ImageField with a custom File class. I need to have a custom thumbnail for each image/file. When creating a file in the CMS, it says I can upload the thumbnail once the entry is saved, but even saved, I still can't..
Hope you will figure out what happening there. (screenshot attached)