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.
I configured an unlimited image filed the formatter as follows: Show gallery on field in compact mode.
In the frontend I found out that the first image was shown but the rest wasn't. I did some digging and found this line in theme_shadowbox_formatter
return '<div class="' . $wrapper_classes . '"' . (( $variables['itemid'] == 0 || (isset($variables['compact']) && !$variables['compact']) ) ? '' : 'style="display:none;' ) . '>' . $output . '</div>';
Note the missing " behind display:none;
Comment | File | Size | Author |
---|---|---|---|
#5 | 1980308-fix-Field-Formatter-Gallery-Compact-missing.patch | 725 bytes | Bathie |
#3 | 1980308-fix-Field-Formatter-Gallery-Compact-missing.patch | 725 bytes | Bathie |
Comments
Comment #1
Honestly Illustrated CreditAttribution: Honestly Illustrated commentedConfirmed: Line 558
Comment #2
plusproduit CreditAttribution: plusproduit commentedThanks
Comment #3
Bathie CreditAttribution: Bathie commentedAdd a patch to fix Field Formatter Gallery Compact missing.
Comment #4
Selfirian CreditAttribution: Selfirian commentedHi, this didn't work for me I had to change the patch a bit in order to have it working, it's a small css thing but it's the first time I find an error I actually could fix myself :) The " comes after none;
Comment #5
Bathie CreditAttribution: Bathie commentedHi, I updated the patch to fix Field Formatter Gallery Compact missing for 7.x-3.x.
Comment #6
carstenG CreditAttribution: carstenG commentedComment #7
kiralyj CreditAttribution: kiralyj commented#5 patch is good, thanks!
Comment #8
carstenG CreditAttribution: carstenG commented