Caption on images

When using the Image block, there is a spot for "Alt/Caption" text. This adds alt text to the image, but a caption is nowhere in sight.

Is this simply a bad naming convention in the UI or am I missing something?

I tried adding this code to concrete/core/controllers/blocks/image.php:
$img .= "<p>{$this->altText}</p>";

on line 141, but that just hosed the page. :)
(I put the new file in the root level blocks directory)

View Replies: View Best Answer
tallacman replied on at Permalink Best Answer Reply
If you want an image caption block J12345 makes a good one in the marketplace for free. Called Image Caption I believe. The standard image block does not have a caption, just and alt tag.
CygnetMidwest replied on at Permalink Reply
Excellent. I will look into that one.
cebabbage replied on at Permalink Reply
Hi, do you know of another version as the version suggested here is not compatible with 5.7.3.

Dushka replied on at Permalink Reply
I would have thought that the ability to add a caption to an image would be bog standard. Any developments in that direction? Anyone?
MrKDilkington replied on at Permalink Reply

Are you looking for this feature for use in 5.7?
Dushka replied on at Permalink Reply
Yes I am.
I notice that the documentation for 5.7 Image block says that "The Alt. Text area is a short description that is useful for SEO and accessibility. Many templates also use it for a caption." This comment suggests that if I was a little bit more Cr5 savvy I could find a way of achieving the desired result, but I'm afraid I'm stumped. My apologies if I sound a tad peeved.
MrKDilkington replied on at Permalink Reply 2 Attachments
Here is a quick custom block template.

It should be unzipped into this directory:

This should be the path to the template after unzipping:
Dushka replied on at Permalink Reply
O.K. Many thanks. Very much appreciated.