Closed (fixed)
Project:
Image Matrix
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
21 Jul 2012 at 07:09 UTC
Updated:
16 May 2024 at 00:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
maciej.zgadzaj commentedYou can use anything you like as a "caption" right now - just add for example
Content: Titlefield to your view (make sure that it is added after image, so that it will be displayed over it) and format it in a way you like using CSS.Comment #2
Anonymous (not verified) commentedSorry, I was referring to when using Image Matrix as a field formatter in a content type. I had Alt tags enabled for my images but there didn't seem to be a way to display them...
Comment #3
maciej.zgadzaj commentedFeature added in the most recent dev version, just pushed to d.o.
Comment #5
Anonymous (not verified) commentedThe changes you committed did add an extra div showing the alt and title text, but that doesn't actually solve the problem of displaying the alt or title text as a caption in Colorbox.
I've worked out that to display a caption, Colorbox simply takes the alt or title text and adds it as the title attribute of the link (as opposed to the image). You code was already adding the image's title text as a title attribute, but it wasn't doing it for the alt text too.
The attached patch adds the alt text of the image as the title attribute of the link if there isn't already a title attribute set. This solves the problem for me.
Comment #6
maciej.zgadzaj commentedThanks Peter, patch applied, new dev version just pushed to d.o.