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've made a photo gallery using Views, where each photo is a node. I want my images' captions to come from one of the nodes' optional fields. But if the field is empty on a node, I get the token in plain text as the caption, instead of simply getting no caption.
I've attached a screenshot as an example. The caption works perfectly whenever the field is there, but does this whenever it's absent.
Comment | File | Size | Author |
---|---|---|---|
Caption token bug | 407.8 KB | Lanny Heidbreder |
Comments
Comment #1
frjo CreditAttribution: frjo commentedI believe this was fixed in #1412614: Clear tokens that do not have a replacement value and committed to 7-dev.