- Merge request !939Issue #2971209: Allow the MediaLibraryUiBuilder service to use an alternative view display โ (Open) created by phenaproxima
- last update
over 1 year ago 30,125 pass, 1 fail - @guypaddock opened merge request.
- last update
over 1 year ago 30,125 pass, 1 fail - ๐บ๐ธUnited States john.karahalis
john.karahalis โ made their first commit to this issueโs fork.
- last update
over 1 year ago 30,093 pass, 13 fail - last update
over 1 year ago 30,093 pass, 13 fail - last update
over 1 year ago 30,125 pass, 1 fail - last update
over 1 year ago 30,125 pass, 1 fail - last update
over 1 year ago 30,125 pass, 1 fail Just tried the patch but unfortunately I haven't found the way to select the view display I want by default.
๐คทIs this just for a media library in CKEditor?
I wanted to have the Table display by default - instead of Grid - when users open the media library from an entity_reference field (see attached capture).
- ๐ช๐ธSpain tonibarbera
I am working on a feature that requires this patch.
The provided solution here does not allow you to select the view from the field configuration menu.
Therefore, I'm pushing here a simple patch that provides a contextual menu in the field configuration that allows selecting the default view and applying it in the media modal window.
- last update
7 months ago Custom Commands Failed conspirolog โ changed the visibility of the branch 2971209-media-library-custom-view-id to hidden.
conspirolog โ changed the visibility of the branch 2971209-media-library-custom-view-id to active.
Attached is the patch against 10.3.2.
The changes include configurable Field Widget settings. Both view and display ID can be chosen.
I took the recent MediaLibraryState changes from the merge request by john.karahalis and added configurable field widget settings form based on the #6 by chr.fritsch, as well as the proper MediaLibraryState creation.NOTE 1: If you use the patch as is, for the sake of simplicity of the patch, your new views should start with 'media_library' prefix. If you would like to change that, see the diff at line 10 or implement your own hook/change the patch. This view id check and the next classes adjustments are needed for the JS behaviors to properly process the view.
.
NOTE 2: This patch does not affect theming. You will still have to make copies of views-view--[yourviewid].html.twig and views-view-unformatted--[yourviewid].html.twig (just make copies of the defaults and rename).NOTE 3: There are no tests.
Tested at 10.3.2.
- ๐ฎ๐นItaly itamair
Patch #88 works pretty handy for me, as it allows to configure from the Manage Form Display the Media Library View & Display to use for the Media Library Widget, and also the Media entity view mode.
- ๐ซ๐ทFrance NicociN
For those who just need to force "table" display everywhere, here a simple patch to force "table" view mode.
It also works for CKEditor5 media library (that previous patch does not).