Hello, Im trying to config display (Manage Display) for my image field, under Juicebox settings. Im trying to put the Title and Description (Media fields on image file type) on Title and Caption Sources (Juicebox) and its doesnt show nothing over the image. When I change to Title or Alt Text, it works. What could happen? Thanks a lot, great work with the module!
Comments
Comment #1
dougn7 commentedComment #2
rjacobs commentedHey there,
This module does have support for file entity fields (i.e. the Media module) in files and captions, though I'm not aware of any conditions that trigger problems there. I suppose the first thing to check is that your specific image entities (that are used in the gallery) actually have text inside your "title" and "caption" fields. I'm assuming you confirmed this already though.
Can you let me know what versions of the "Media" and "Field Entity" modules you are currently using?
Comment #3
rjacobs commentedAdjusting title/tags.
Comment #4
dougn7 commentedThank you for your reply. Yes, theres content on this fields. Im using Media 7.x-2.0-alpha4+25-dev and File Entity 7.x-2.0-beta1. Should i try Dev version of File Entity (2015-Feb-18)?
Comment #5
dougn7 commentedUpdated to dev version of File Entity (2015-Feb-18) and still didnt work...
Comment #6
rjacobs commentedI'm mostly suspect of changes in file_entity, as that's what Juicebox really interacts with (the Media module only really influences things on the widget/input side, which is less of a factor). I've personally not tested the most recent version of file entity, and I think my dev space is still using 7.x-2.0-alpha3, which is one tagged release behind. It's quite possible that something changed between 7.x-2.0-alpha3 and 7.x-2.0-beta1 which introduced an incompatibility. I'll need to get my dev space up-to-date with recent developments in file_entity and see if it's possible to replicate this.
I hope to do this soon, but if you are interested in probing around a bit in the meantime, I think the function to investigate would be _juicebox_field_get_text() inside includes/juicebox.field.inc. This is where an image title or caption source text is "extracted" from a Drupal file field item. There is some special logic in there for handling file entity fields which may need to be double-checked.
Comment #7
dougn7 commentedOk, im going to try to take a look on this. I will back soon. Thanks a lot.
Comment #8
rjacobs commentedI just tested things out with the most recent tagged releases (file_entity 7.x-2.0-beta1 and media 7.x-2.0-alpha4) and was not able to replicate the issue. I then boosted things to the dev version (file_entity 7.x-2.0-beta1+21-dev and media 7.x-2.0-alpha4+26-dev) and was still unable to replicate any problems with file-field-based titles and captions. I also ran the automated tests for the module, which include some test coverage related to file entities, with these dev versions in place without issue. This would seem to rule-out any direct incompatibilities that are version-specific.
I wonder if there is something unique about the actual fields that you have attached to your "image" file type and are trying to use as title and caption sources. What type of fields are they (I'm assuming just "text" or "long text")? If they are using a text format does that format have any unique filters in place? Also, do you have any other media "ecosystem" modules or sub-modules in place?
Comment #9
dougn7 commentedHey dude, I discover the issue. I did install Media Gallery before JB. It created a Title and Description field that doesnt interact with JB. I unistalled it and create my own fields. After linking JB with this new fields, everythink works fine now. Thank you and sorry for spend your time. Thanks a lot!
Comment #10
rjacobs commentedOk, thanks for confirming. I'm not too familiar with the Media Gallery module, but if it's creating any field data for images independent of core and File Entity then yeah, Juicebox would not be aware of them. It looks like Media Galley integrates heavily with the Media module so I would think that any special fields it adds would be normal File Entity fields (since Media uses File Entity), but who knows. Anyway, glad you got it working.