[TYPO3] Mapping image, alttext and link in TV - problems

Francois Suter fsuter at cobweb.ch
Wed Jan 23 13:24:16 CET 2008


Hi,

> <ul class="partner">
>    <li><a href=""><img src="" alt="alternate tekst" /></a></li>
>    <li><a href=""><img src="" alt="alternate tekst" /></a></li>
>    <li><a href=""><img src="" alt="alternate tekst" /></a></li>
>    <li><a href=""<img src="" alt="alternate tekst" /></a></li>
> </ul>
>
> The goal is to map the link the image and the alternate tekst.
>
> Mapping href as an attribute and the image as image goes fine.
>
> But when I map the alternate tekst as an attribute I loose the mapping
> of the image and get an error message. I have tried mapping the three
> elements in all sorts of ways and orders but I allways loose the  
> mapping
> of the image, when I map the alternate tekst.

It's not possible to map the alt attribute of the img tag, because it  
is inside the img tag which is already mapped.

What you can do is to make the alt field a non-mapped field and use  
its value in the TypoScript that is used to replace the img tag.

BTW you should ask TV questions in the TV list.

HTH

François Suter

-- 
Cobweb Development Sàrl
www.cobweb.ch

Rue Eugène-Marziano 15, CH-1227 Les Acacias (Geneva - Switzerland)
T: +41 22 880 00 93, F: +41 22 880 00 94, E: support at cobweb.ch
web solutions for professionnal requirements






More information about the TYPO3-english mailing list