-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Add from files' on a many_many field only allows the selection of a single file #693
Comments
For modal popups, we could enable a single batch action (select / insert), but only for multi-select, and not for embed modals. I.e. UploadField with multi=true, but not html editor insert media. |
Since the modal intentionally was limited to a single file insert, I'm re-classifying this as an enhancement. |
@newleeland @clarkepaul The UX challenge here is to harmonise the "insert" sidebar on the modal (showing a single file) with the fact that you should be able to select multiple ones. Ideas? |
@chillu
I'd imagine there will a lot of cases where multiple images will need to be uploaded to the same configuration like a gallery view. If we simply inserted a couple of images, the user may need to configure the images individually after inserting. The full solution would be to give users step through, and configure all the files AND |
Potential design This leans towards the UI and behaviour already used in asset admin. Design Excludes changes to search |
Had a chat to @newleeland and there are still a few things which need to be resolved.
It might be good to take the flow from:
|
Had chat to @chillu and this is going to be limited to uploadfield which I didn't click on to, so no preview needed when inserting multiple. |
[Feedback required] Update on batch insert via uploadfield design https://invis.io/NP79NDU4J#/269647120_Pages_Batch_Insert_Upload_Selected_One_File |
Latest designs look good. I assume those toolbar placements at the bottom are consistent with what we'd do in the main AssetAdmin section? We might drop the "insert X files" and just use "insert file(s)" if it turns out to be a pain to implement. |
@newleeland I think we would be safer to use a consistent batch alert popup, whether that's floating from the top, or as you've designed from the bottom. What is your feeling on this? |
Updated design
@chillu Yeah, "insert file(s)" is fine. I've updated the design for this |
Hi, the suggestions from @newleeland in the previous post about "Carousel navigation" is quite a scope creep... I don't quite understand the point here
If we re-enabled checkboxes then the ability to view is still available when more than one is selected, like how the asset-admin currently functions. This would almost seem more suited to rebuild a modal-purposed Gallery, rather than continuing to bastardise the current admin-section designed gallery. |
Agree with @flamerohr that carousel is out of scope - but @newleeland had already indicated that as optional in the designs anyway. I get Jared's point about maximising the click area for this use case, rather than making users aim for the checkbox, and have "view item" as the main action. It also allows users to insert faster, by not forcing them to load the edit form before an "insert" button appears. In most cases, the thumbnail plus shortened title in the thumbnail view are enough info to be sure what you're inserting. @flamerohr How much work do you think it is to (cleanly) create this variation (in points), vs. just enabling the existing checkboxes? "Editing state" is a bit of a misleading annotation here - when you select one or more files to be associated with an UploadField, there's no ability to edit them in the modal dialog. An edit trigger there takes you to another window. Here's how it looks: |
puppy! so cute @chillu
Both will need the following:
I've suggested to enabled checkboxes as a short-term solution and the variation as a long-term solution, but keen to hear how the user-testing is going from Jared |
Potential prototype if Batch/single files insert
Single select variant Edit/Replace media file from UploadField |
Looks good @newleeland. We just need to add this footer bar to the modal view. |
@newleeland Please review the "insert media" designs for the HTML editor, and see if we need to consolidate the position of the "insert button". Also link to the ux issue where we plan to move the batch actions in asset admin down to the bottom, mgith be best to do this at the same time |
@chillu Multi-select: https://invis.io/NP79NDU4J#/270792056_Pages_Batch_Insert_Upload_Selected_One_File_Copy_8 Edit and replace a single file Mobile view insert (new)https://invis.io/NP79NDU4J#/278948651_Pages_Insert_Media_Modal_Selected_Multiple_Files_Mobile There isn't a story to move the Bulk actions toolbar down, So I'm going to create one. |
From @DorsetDigital on November 9, 2017 13:8
I have a page with a
many_many
relationship toImage
In the CMS, it is possible to drag & drop multiple files to the
UploadField
as expected.If you choose 'Add from files', the file selection popup appears, but it is only possible to select a single file at a time. I would expect to see the checkbox functionality here so I can add multiple files in one operation.
Copied from original issue: silverstripe/silverstripe-cms#2019
Acceptance Criteria
Design note: Checkbox on multiple, checkmark on single
Design note: Click on whole item both selects and views detail for single select mode. Click on checkbox selects on multi select mode.
Design note: Count on button (multi select only)
Notes
Pull requests
Designs
Single:
https://invis.io/WZFWVRZC9Q2#/280025971_Files_Single_File_Insert_Start
Multi-select:
https://invis.io/NP79NDU4J#/270792056_Pages_Batch_Insert_Upload_Selected_One_File_Copy_8
Edit and replace a single file
https://invis.io/NP79NDU4J#/275421963_Pages_Batch_Insert_Upload_Select_Files_Inserted_Copy_4
The text was updated successfully, but these errors were encountered: