[BUGFIX] Use title & alternative fields in filelinks 40/32640/2
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 8 Sep 2014 13:35:54 +0000 (15:35 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Sep 2014 16:55:51 +0000 (18:55 +0200)
* The field "alternative" of the file should be used if filled.
* The field "title" of the reference should be preferred over the
  name if filled.

Resolves: #60429
Releases: 6.3, 6.2
Change-Id: I969dbb49a292f9980b9efa0e5e72ff2a9bc7e2f3
Reviewed-on: http://review.typo3.org/32640
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/css_styled_content/static/setup.txt

index ec5db76..6b14815 100644 (file)
@@ -1249,6 +1249,11 @@ tt_content.uploads {
                                                fileTarget.override.override.field = target
                                                removePrependedNumbers = 1
 
+                                               title {
+                                                       data = file:current:alternative
+                                                       htmlSpecialChars = 1
+                                               }
+
                                                /*
                                                jumpurl = {$styles.content.uploads.jumpurl}
                                                jumpurl {
@@ -1285,7 +1290,7 @@ tt_content.uploads {
                        # filename
                        20 = TEXT
                        20 {
-                               data = file:current:name
+                               data = file:current:title // file:current:name
                                htmlSpecialChars = 1
                                required = 1