Skip to content
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

Implement input type MediaSelector #6151

Closed
alansemenov opened this issue Apr 4, 2018 · 0 comments
Closed

Implement input type MediaSelector #6151

alansemenov opened this issue Apr 4, 2018 · 0 comments
Assignees

Comments

@alansemenov
Copy link
Member

We need a new input type called "mediaSelector". It will be similar to current content selector but will only list content of type media and will have an option to upload new content directly from the input (like image selector).

Requirements:

  • Should look and behave like current ContentSelector input type: flat mode by default, icon to switch to tree mode
  • Dropdown should only list content of media types (see api.schema.content.ContentTypeName.getMediaTypes()) - this must be filtered on the server
  • Should support all of the config options of ContentSelector. allowContentType should be applied to the list of content that is already filtered on the server (if I want to limit the list of media types to only 'audio', for example).
  • Should have Upload button to the right of the input field
  • Upload dialog should only allow files of media type
  • Uploading a new media content should automatically add it to the list of selected options (and to the dropdown, of course)
  • The list of selected options should look and behave like it does for ContentSelector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant