Feature #44182
closed
File links: Add registers for title text and alt text fields
Added by Christian Hennecke over 11 years ago.
Updated over 6 years ago.
Description
The file link element offers a description, title text and alternative label text for each file. Currently, it is only possible to access the description via a register. It would be desirable to also provide registers for the alt and title text fields, e.g., to only link the description and provide more in-depth info in the other fields.
A patch adding the registers titleText and altText is included.
Files
- Category changed from Content Rendering to TypoScript
- Status changed from New to Accepted
- Target version set to 6.1.0
- Complexity set to easy
- Assignee set to Georg Ringer
- Status changed from Accepted to Under Review
Can you please add a TypoScript snippet that shows the functionality of this patch? So I can verify the working of it?
I'm using this:
# filelinks
tt_content.uploads.20 {
# link description instead of filename
labelStdWrap.data = register:description
# output alternative text
itemRendering.20.data = register:titleText
}
This outputs the "File description" as link and the "Titles" as unlinked text.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF