-
Notifications
You must be signed in to change notification settings - Fork 1
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
More versatile FileModal #12
Comments
The
The problem is that getting any other use case working would require us to hardcode them in asset-admin. The SPIKE Identify opportunities to refactor InsertMediaModal identified some refactoring opportunities that could make the modal more flexible. The work highlighted in there would be a pre-requiste to getting this card working. An alternative could be to take the same approach we ended up taking in LinkField v4: get the UploadField working in a Form Schema modal. |
It's worth pointing that this could fulfill an old dream of mine: basically, allowing a dev to define some bit of metadata to attach to file when displaying it in context. Example where this could be helpful:
|
The current FileLink modal is reusing the modal used to create WYSIWYG FileLink ... which doesn't allow more complex use case.
There could be a cool use case for providing a flexible Modal that allows you to pick a File and attach extra bit of MetaData to it. e.g. Select an image for a Slide in a carousel.
Basically any ManyMany relation between a file and another object with some metadata stored on the relation table could use this.
The text was updated successfully, but these errors were encountered: