Drupal Juicebox Caption dropdown has only two options

Created on 10 June 2025, 2 months ago

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 drop down 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!

πŸ’¬ Support request
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States jlangham

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jlangham
  • πŸ‡ΊπŸ‡ΈUnited States fkelly

    I struggled to duplicate this but finally ...

    I think that captions, for the most part are determined by the xml file that is associated with a given album. These files have a section that looks like this:

    <juiceboxgallery 
    
    	useLargeImages="true"
    	resizeOnImport="false"
    	importTitle="NONE"
    	importCaption="IPTC"
    	enableAutoPlay="true"
    	autoPlayOnLoad="true"
    	captionPosition="BELOW_IMAGE"
    	captionHAlign="CENTER"
    	showImageNumber="false"

    I believe the Juicebox javascript program uses this section of code from the xml file. Of course the Javascript is not open source so who knows?

    I did find one old and unused content type on my system that reflects what you are looking for. There is an image field in it. It has the field name "jb_image" and the field type image. In the Manage Display screen for that content type it has the format set for Juicebox Gallery and that enables a long drop down area that includes:

    Image style: Juicebox small (800x800)
    Thumbnail style: Gallery Thumbnail
    Caption source: Image - Alt text (processed by fallback text format)
    Title source: Image - Title text (processed by fallback text format)
    Additional Juicebox library configuration options may also be set.

    In other words I think that if you have an image field with the format set to Juicebox Gallery it may do what you want.

    I suspect that using the xml file when building the gallery may be more effective. 10 years ago when Juicebox was written and worked in conjunction with Juicebox Builder Pro things worked pretty reliably. Over the years, not so much.

    I'm looking (and spending all my time) on the Solo Theme in conjunction with Paragraphs and some Views and Javacript based gallery generators that depend on paragraphs.

    and I see that we've overlapped our time frames with responses. Sorry.
    Are you using the xml files to drive your galleries at all?

Production build 0.71.5 2024