[Typo3] beforeImgTagParams with alt and title
Peter Klein
peter at umloud.dk
Tue Sep 27 19:37:08 CEST 2005
Hi Søren. Don't use "beforeImg", use "before" instead.
Only drawback is that the rollover won't work, but from what I can see from
your code, then you dont use rollover on the images.
(This can easily be done using CSS if you need it.)
-- cut --
before.cObject = IMAGE
before.cObject.file.import = uploads/media/
before.cObject.file.import.field = media
before.cObject.file.import.listNum = 0
before.cObject.altText.field = subtitle
before.cObject.titleText.field = subtitle
before.cObject.stdWrap.typolink.parameter.field = uid
-- cut --
---
Peter Klein/Umloud Untd
"Søren Schaffstein" <soeren.schaffstein at media-lights.de> wrote in message
news:mailman.499.1127836869.11589.typo3-english at lists.netfielders.de...
> 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