Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In d7, image fields are entities that can have fields added to them. So I've got photos on a news site that have titles, descriptions and photo credits. Is it possible to display these in color box? If not, it's a feature I'd really like to see.
Also, slightly more advanced than that- is/would it be possible to display a link to the node they are part of? For example, if I created a view to show all the images included in news articles, could the colorbox view of them display a link to see the associated article?
Thanks
Comments
Comment #1
Michèle CreditAttribution: Michèle commented+1 for the first question!
Comment #2
frjo CreditAttribution: frjo commentedThe Colorbox trigger field in Views may be able do fix this. There is not much in the way of documentation about this feature unfortunately.
A future part of my Colorbox sreencast serie will demonstrate some way to use it but I can't say when I will have time to do it.
Comment #3
Michèle CreditAttribution: Michèle commentedHi frjo
Thanks for your reply. Until now my tests with the colorbox trigger field weren't successful, but there are lots of options and combinations I've not tested yet... ;-)
@Mtro
You've written
Can you please explain how you added these additional fields? I've searched but did not get any information about that (except for the new field collection module which seems to be a little bit buggy and which does not give the option to sort the existing entries so far).
Many thanks!
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commented@Michèle
admin/config/media/types/manage/image/fields
I haven't done much with it, yet, aside from add fields that don't seem to come up anywhere by default.
Also, I realize I haven't added fields to fields, but added fields to a specific field widget.
Comment #5
Michèle CreditAttribution: Michèle commented@Mtro
Thanks for your answer! Well... I have no such config page (admin/config/media/types/manage/image/fields). It seems that this is from an other contributed module, right?
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedOh, you know what? It's from Media module.
Comment #7
Michèle CreditAttribution: Michèle commentedThanks Mtro ;-)
Comment #8
lsolesen CreditAttribution: lsolesen commentedSeems to be answered.
Comment #10
TravisJohnston CreditAttribution: TravisJohnston commentedThis doesn't work for D6, any thoughts? I would like to load a description, and a few additional image fields with each image in the colorbox modal.
I tried creating 1 view field and rewrote the output to include the tokens for all the needed fields, and had colorbox trigger load it. It just displays a standard gallery.