[Typo3] Conditions in TV-TS or: TV image with language dependend alttext
David Rosenkranz
david.rosenkranz at detewe.ch
Fri Nov 4 16:11:25 CET 2005
Hi,
I have defined an FCE which contains an image element. I have wrapped the
image with a "click-to-enlarge"-link. Now I want the image to have a
language dependend alt tag which says "Click to enlarge" in the languages
featured by my website. I guess I can do that by editing the TypoScript of
the image element of this FCE. I tried the following. But somehow the
condition does not work:
<TypoScript>
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 167
###################################
### BEGIN code to enlarge image ###
###################################
10.imageLinkWrap = 1
10.imageLinkWrap {
width = 800m
height = 600m
JSwindow = 1
JSwindows {
newWindow = 0
expand = 17,20
}
enable = 1
typolink.parameter.field=image_link
typolink.extTarget = _blank
}
#################################
### END code to enlarge image ###
#################################
10.alttext = Klicken zum Vergroessern
[globalVar = GP:L = 1]
10.alttext = Click to enlarge
[globalVar = GP:L = 2]
10.alttext = CLICK TO ENLARGE
[globalVar = GP:L = 3]
10.alttext = CLICK TO ENLARGE
10.titletext = {alttext}
</TypoScript>
(the last line sets the titletext to the value of the alttext - it works)
Instead of displaying the localized version of the alttext, it is always
"Klicken zum Vergroessern".
Do you have a hint for me to get this working?
Thanks a lot.
Greetings from Switzerland
David
More information about the TYPO3-english
mailing list