I've teste your new files and if both managers are in list-view it works without a problem. I you use two FileDataObjectManager and the first is in grid-view, the second manager still can't be sorted.
There's an HTML error (the Comment should be '<!-- LIST VIEW -->', not '<! -- LIST VIEW -->'), but that's not the cause for it.
It's realy strange, when you switch the view of the first manager with sorting enabled of the second manager, sorting works without turning it off and on again...
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
Preview: DataObjectManager module
This is looking exciting, UncleCheese.
Is there a convenient way to override the server-side file name/folder of an uploaded file?
Basically, I'm hoping to place all uploads from a given page in a folder whose name is equal to the ID of the given page. So, if I upload "doc.pdf" from page ID 32, I would like the file's path to be "32/doc.pdf".
Does that sound doable?
Thank you,
Ben
It does.. I assume you're talking about the FileDataObjectManager? It was on the list for the first release, but i decided most people wouldn't want such a feature so i wishlisted it for the next one. I'll add it in soon.
Wow! Thanks for the fast response! Any idea how soon? Would it be of interest to you if we came up with a patch that implemented this for you to consider?
Ben
Shouldn't be that hard. I know exactly what I need to do. I'll add it into the SVN checkout this weekend sometime.
This is really cool so far! I hope to test it out soon.
Is my understanding correct that this will be replacing your Bulk Uploader module?
Thanks agian.
UncleCheese, do you have the same issue with sorting the data (list and grid view mixed)? Cheers
@dynamite - Yes, for the few who were using the BulkUploader in its barely-stable state, consider this a replacement. Should be as simple as changing the code "BulkUploaderField" to "FileDataObjectManager".
@Bo -- Haven't tested it yet. I'll try to get a test scenario built today.