Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
Category:
TypoScript
Target version:
Start date:
2012-12-21
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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

patch.diff (2.41 KB) patch.diff Patch against head Christian Hennecke, 2012-12-21 12:22
Actions #2

Updated by Jigal van Hemert over 11 years ago

  • Category changed from Content Rendering to TypoScript
  • Status changed from New to Accepted
  • Target version set to 6.1.0
  • Complexity set to easy

Thanks for your patch. Can you push the change to Gerrit? More details about contributing: http://wiki.typo3.org/Contribution_Walkthrough_Tutorials (or ask in the mailing lists or ask the Friendly Ghost of the week).

Actions #3

Updated by Georg Ringer over 11 years ago

  • Assignee set to Georg Ringer
Actions #4

Updated by Gerrit Code Review over 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17705

Actions #5

Updated by Alexander Opitz about 11 years ago

Can you please add a TypoScript snippet that shows the functionality of this patch? So I can verify the working of it?

Actions #6

Updated by Christian Hennecke about 11 years ago

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.

Actions #7

Updated by Gerrit Code Review almost 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17705

Actions #8

Updated by Georg Ringer almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF