Needs work
Project:
JAIL / Lazy Load Formatter
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2012 at 12:37 UTC
Updated:
22 Aug 2013 at 22:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
svajlenka commentedWhile I had no immediate plans to implement media module compatibility, that does seem like a nice feature to have. I'm entirely unsure of how the implementation of that would look like/function. This is something I'd love to hear more from others and get built in.
Comment #2
remkovdz commentedI think it would give this module a lot more value, since there are tons of people using the media module.
I can't help you developing though...
Comment #3
rerooting commentedThis would be great!
Here is an example of how Galleria added media 7.x-2.x support:
http://drupalcode.org/project/galleria.git/commitdiff/3715479dbb5256e8ac...
Which layers on the existing support provided for 1.x:
http://drupalcode.org/project/galleria.git/blobdiff/9ae66fb9a4ec6ac97aa6...
Comment #4
rerooting commentedWell, either I'm hallucinating or this actually works!
Make sure to clear the cache after applying this patch. I don't have time to test for a wide array of use cases, but this seems to work for file_entity image field formatters! You get the additional option of jail when you are in the mange file display options. It appears to work like a charm! Thanks for this awesome module!
(p.s. im not sure what the last part of the diff is doing but it didn't seem to have any negative impact on it)
Comment #5
justadropofwater commentedThis patch does work for images from Media. It's throwing some nasty notices:
which is from images that don't have those attributes obviously. Is using
drupal_strlendesirable way to determine if there is a title there? There isn't a check for 'alt'.I'm going to take a look at getting other types of media working as well (which may be outside of the scope of jail since those are third-party api calls - maybe the mod author can give us some input).
Comment #6
rerooting commentedYeah apologies, I saw those and had to disable JAIL. It was a 'bonus' on this project and we had to keep moving. There are some other larger issues with this module, namely that it instantiates the same jquery function repeatedly for every image, causing a lot of issues with load time and flickering. I would be glad to help test any further patches you can provide for media integration, as I'm not much of a developer!
Comment #7
danlinn commented@rerooting thanks for that note. That should be corrected.
We'll take a look at media integration as I'd love to see that project finally complete.