Closed (fixed)
Project:
Media Directories
Version:
8.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2020 at 22:04 UTC
Updated:
9 Apr 2020 at 19:39 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
cainaruComment #3
cainaruComment #4
cainaruAdding a patch that removes the dependencies on the
imageandremote_videomedia types as well as removing the dependency on thefullview mode in order to ensuremedia_directories_editorcan be enabled on sites that may not have these media types and/or view modes.Comment #5
ytsurkThanks for the patch. I think this also solves #3111907: Editor button config should be optional
Comment #6
ytsurkComment #7
rang501 commentedIt seems fine to me, although we need to make sure there is documentation available on how to configure embed button(s).
Comment #8
ytsurkI want to have the two media types and the view created in the install_hook if they exists. So standard users do not need to configure themself.
Comment #9
ytsurkComment #10
ytsurkSo here the final patch. Having the config non-optional installs the button always. The install_hook checks for existing media types and view mode, and installs them if available.
Comment #11
ytsurkRemoved the check for the config module.
Comment #12
rang501 commentedIt seems fine to me - installed the media_directories_editor module and two media types (image, remote_video) were enabled with two display plugins (full content and image with dimensions).
Comment #13
ytsurk