Closed (fixed)
Project:
Sector Distribution
Version:
8.x-4.0-rc1
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2020 at 02:33 UTC
Updated:
26 Mar 2020 at 03:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heiket commentedThe awesome people of the Video Embed Field module have also updated their page with solutions!
https://www.drupal.org/project/video_embed_field
Comment #3
heiket commentedComment #4
danielvezaNot prod ready. This doesn't work in Sector yet. We override the media.settings.yml file unnecessarily (See #3080497: [Meta] Cleanup our config files).
So we need to remove that file.
But we also need to provide an update hook for existing sites. We need to add the
oembed_providers_url: 'https://oembed.com/providers.json'key & value to media.settings.yml
Comment #5
Thangvu commentedHi Daniel,
I have attached the patch as required, I test it on the local site and it works fine for me. please check it again when you apply it. Cheers.
Comment #6
danielvezaThis isn't needed. New sites will already have the new config, and the update will run on existing sites
This should be a bit more descriptive. The param and return also isn't needed in this case.
This creates a new config entity called media.settings.yml. We want to alter media.settings and add the new key & value to the end.
Comment #7
Thangvu commentedHi Daniel,
This is a new patch, I deleted some unnecessary in the code. Please check it out
Thang.
Comment #8
Thangvu commentednew patch file, deleted some comments.
Comment #9
Thangvu commentedComment #10
danielvezaHere's a mega patch with all changes.
This swaps the sector starter kit over to media library and provides a minor install task to allow older Sector sites to take up the media library if they decide to.
Comment #13
danielvezaCrediting edmonkey & emma_selley for all their internal testing for this change.
Comment #15
danielvezaThanks all!
Comment #16
danielveza