Bug #67858
closed
Image caption vs. description FAL element vs. content element
Added by Bernhard Giner over 9 years ago.
Updated over 4 years ago.
Description
In FAL there is a field "caption" but not in tt_content image. The content element uses field "description" instead of "caption"
For frontend-rendering of imagecaptions you may set it via typoscript:
tt_content.image.20.preRenderRegisters.allImageCaptions.cObject.renderObj.data = file:current:description // file:current:caption
tt_content.image.20.caption.1.1.data = file:current:description // file:current:caption
but there should be apossibility to view the imagecaption in the description of the content elements
Regards
Bernhard Giner
- Category changed from Image Cropping to Frontend
- Target version changed from 6.2.14 to next-patchlevel
Also present on 7.6-dev (latest master)
- Target version deleted (
next-patchlevel)
- Target version set to Candidate for patchlevel
- Status changed from New to Needs Feedback
- Assignee set to Jo Hasenau
Could you please confirm if I got the problem right:
Both, description and caption are different fields of FAL images, which can be rendered in the frontend.
The point now would be to make both visible in the backend as well?
Yes, are right.
Not shure, but I believe that it was fixed silently in one of the last versions.
description is part of core - caption is part of filemetadata and only available when this sysext is installed
so this should be checked
nevertheless it would be very useful if caption was present in backend editing forms of tt_content too. otherwise there is no way for the editor to overwrite values coming from FAL.
it is not "fixed silently" until 7.6.4 / 6.2.19
- Status changed from Needs Feedback to New
- Target version deleted (
Candidate for patchlevel)
- Status changed from New to Closed
This is not actually a bug (also see #59161) - caption is part of the filemetadata extension, which is not a necessary part of the core (which is why we can't by default use that field). The fallbacks work by overlaying the sys_file_reference table over the metadata table where both need to have the same field names for the fallback to work. If you need both caption and description in a project, please use your custom project code to
- extend sys_file_reference with the caption field
- configure TCA with override placeholder from sys_file_metadata
- make sure filemetadata is installed
Additionally, you will probably need to adjust the frontend templates to display the content of the caption field.
Also available in: Atom
PDF