I'm using custom fields as captions. That works well, thanks to #1290208: Custom captions using placeholder tokens.
However, when the field is empty, the token itself shows up as the caption. I'd rather have no caption at all in that case. That can easily be fixed with the following patch.
| Comment | File | Size | Author |
|---|---|---|---|
| colorbox-clear-tokens.patch | 703 bytes | david lesieur |
Comments
Comment #1
frjo commentedComment #2
frjo commentedCommitted to 7-dev, thanks!
Comment #4
aasarava commentedSorry to reopen, but it doesn't work in the dev version. The 'clear' option can't be combined into the array for the second parameter. It has to be in the options array, which is the third parameter to the token_replace() function.
Comment #5
frjo commentedThanks for noticing this bug! I believe I have fixed it in 7-dev now.