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.
Hi,
Thanks for the great theme. I have used it on many projects.
I have just started a project that uses many custom view modes. I was surprised to find that image captions are limited to the default view modes only. Perhaps it would be good (and not that difficult) to add a third option to the captions settings for "All Modes". I temporarily overcame this limitation by hacking the theme.inc file and adding a extra simple "if" statement at line 614:
if ($vars['field_view_mode'] == !NULL) {
$output .= '<figcaption class="caption teaser-caption"' . $styles .'>' . $item['#item']['title'] . '</figcaption>';
}
Again, thanks for all our work.
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedTrue, its almost a bug really, I can look into detecting view modes and dynamically showing them in theme settings, not entirely sure if that is possible. An "all" view mode is probably a good idea also.
Comment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedHeads up this is done in the Drupal 8 version (soon to be committed), I am not sure I have time to get this into the next version of AT on D7. I have very little time to work on new features because of the pressures of getting ready for D8, once those ease off I can come back to this (D7 is going to be around for a long time yet I think).
Comment #3
danielstrum CreditAttribution: danielstrum commentedThanks Jeff.