[Typo3] beforeImgTagParams with alt and title
Søren Schaffstein
soeren.schaffstein at media-lights.de
Tue Sep 27 18:01:02 CEST 2005
Hello!
I have created a TMENU for a language selection on a page. The menu consists
of a graphic of the country flag (taken from the page where the link leads).
To have the menu done according to the accessibility guidelines I must
include a title-attribute for the a- and img-tag as well as an alt-attribute
for the image tag.
The problem is the img-Tag. (Please find code below.) I can't get the
attributes there. The line containing "beforeImgTagParams" does not work in
the way I have written it, since beforeImgTagParams is not of type stdWrap.
I have just included it to show what I need to do.
I am working on this for hours now... So any help is greatly appreciated!
Any ideas? Workarounds?
# Place flags first
20 = HMENU
20.1 = TMENU
20.1.wrap = <div id="language-flags"> | </div>
20.1 {
NO {
doNotShowLink = 1
doNotLinkIt = 0
beforeImgLink = 1
beforeImg.import = uploads/media/
beforeImg.import.field = media
beforeImg.import.listNum = 0
beforeImgTagParams.dataWrap = title="{field:subtitle}"
alt="{field:subtitle}"
after =
ATagTitle.data = field:subtitle
}
}
Thanks in advance.
Soeren
More information about the TYPO3-english
mailing list