1 (edited by langham 2025-06-09 23:11:47)

Topic: Drupal Juicebox Caption dropdown has only two options

I just installed the Juicebox pro library to my Drupal 10 installation. Everything is working fine except when I'm in the Juicebox interface for the manage display page for an images field, I don't see any options in the dropdown for caption source for img alt, or title, or caption. I only see "no caption" or "file – filename." I made sure that I went into structure > media > image and that the boxes for alt, title, and caption are selected.

I used Juicebox pro before in a Drupal 7 installation, and I had several options for the caption source. If anyone on Drupal 10 has any idea what I'm overlooking, I would greatly appreciate your help. Thanks!

Post's attachments

Screenshot 2025-06-09 at 3.38.48 PM.png 329.11 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Drupal Juicebox Caption dropdown has only two options

Unfortunately, the Juicebox module for Drupal is an unofficial plugin which was not written by ourselves and we have little knowledge of it.

I notice that the latest release is an alpha version (4.00-alpha2) so perhaps the current maintainers released a version with basic functionality and plan to add to it later (although this is just speculation on my part).

Maybe you could post in the Juicebox Issues section of the Drupal forum (here) where the maintainers might be able to give you more information.

I know this does not directly answer your question or resolve the issue but I hope that it at least points you in the right direction.

Perhaps some other Drupal users can post here with more information, too.

Re: Drupal Juicebox Caption dropdown has only two options

Thanks! I just submitted a ticket with the Drupal community.

Re: Drupal Juicebox Caption dropdown has only two options

I notice that the latest release is an alpha version (4.00-alpha2) so perhaps the current maintainers released a version with basic functionality and plan to add to it later (although this is just speculation on my part).

While I try to help out with the Drupal Juicebox forum where I can, I am not a Drupal coding expert and don't have the time to dig into this beyond the reply post that I did on the Drupal forum.  The "classic" version of Juicebox on Drupal, from when there was a full time maintainer there, relied on using the JuiceboxBuilder application to build your galleries and the associated XML file driving the gallery.  That XML file for a specific gallery had a location for the caption field for each image in the format:

importCaption="IPTC"
    enableAutoPlay="true"
    autoPlayOnLoad="true"
    captionPosition="BELOW_IMAGE"
    captionHAlign="CENTER"

   

<< ... that's just a portion of the for a given gallery

I'm pretty sure that, after the "classic" version, an effort was made to let Drupal users build their own xml driver entirely within Drupal.  I posted a partial solution of the Drupal forum showing that, under the right conditions you could still see the caption sources.  I'm not sure that is a complete solution.

Within Drupal I'm working on converting a whole bunch (over 100 galleries and 10k images) to another solution using the Drupal Solo theme and some paragraphs bundles software.  It's a work in progress.  Since 2015 when I started with galleries on Drupal the core developers there have totally changed around the way media and media files on Drupal work and gallery software there can't ignore the changes.  If you just upload a jpg file to the standard "files" directory on Drupal the newer software won't even recognize it ... it has to be converted to a so-called "media" file to work with the newer software.  T'aint simple and I'll probably wind up dumping many of my images during the conversion.