Closed (fixed)
Project:
Blazy
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2019 at 08:31 UTC
Updated:
4 Feb 2020 at 12:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
mohammed j. razemComment #3
gausarts commentedI had the same idea at early dev of 2.x, too. I abandoned it for reasons: we already have a working media formatter, and couldn't afford the time to manage potential ramification due to nested Blazy formatters.
The same decision was also reflected at D7 Blazy. I removed Blazy formatters from file entity displays.
However I am happy to get this in if you or anyone else are interested, with patches. Thanks!
Comment #4
rajab natshahNice idea
We could have a filter protection on nesting Blazy formatter selection in view modes
- View mode for a field in Node/Entity ( with entity reference field to media )
Is this the only requirement at this time?
Comment #5
gausarts commentedSorry, I couldn't verify more, but sounds like a good direction. Thank you!
Comment #6
gausarts commentedRecently I worked with Embed and CKEditor #3054032: Blazy breaks in ckeditor, and wanted to lazyload the video embedded in CKEditor.
My initial worry with some ramification due to potential conflicts with nested Blazy formatters were proven wrong.
Attached is the initial attempt to make Blazy present at Media display level.
This may require the latest DEV, not sure if applicable to RCs.
The actual working file is
BlazyOEmbedFormatter.php, however due to attempts to re-use similar lines, few files are updated.I didn't test it locally, so I will attend any issue I am not aware of after seeing what the test bot says.
If you have any suggestions or improvements, I will be happy to incorporate them while I can. Thanks!
Comment #7
gausarts commentedA few additional changes:
Comment #8
gausarts commentedDoh
DRUPAL_ROOT.Comment #10
gausarts commentedLet's get the ball rolling. Improvements are very much welcome and may follow as always.
Committed for wider feedback. Feel free to re-open if any (side) issue. Thank you all!