[TYPO3-templavoila] Inserting Image<->Link Pairs

Felix Buenemann Felix.Buenemann at gmx.de
Fri Mar 20 18:10:50 CET 2009


Problem solved.

Am 20.03.2009 16:02 Uhr, Felix Buenemann schrieb:
> Hi,
> 
> Am 20.03.2009 14:44 Uhr, Felix Buenemann schrieb:
>> Hi Steffen,
>>
>> Am 20.03.2009 14:04 Uhr, Steffen Kamper schrieb:
>>> Hi,
>>>
>>> it seems you made a mistake with mapping and used wrong mode (inner/outer)
>>>
>>> Try the preview in mapping module.
>> I found the problem. It seems TV didn't like that I reconfigured old
>> field from a previous template. I deleted the section container, saved
>> the template. Then modified it adding back in the section container,
>> container element and the rest and now it works.
> 
> Hmm, on a closer view it's still buggy. As soon as I map the image field
> to either a:inner or img:outer, it'll output the <a> tag twice.
> 
> Mapping only a:attr:href of a:
> <div id="bilder">
>   <span><a hef="some/link1"><img src=""/></a></span>
> </div>
> 
> Also mapping image to a:inner or img:outer:
> <div id="bilder">
>   <span><a hef="some/link1"><a hef="some/link1">
>   <img src="some/image1.png"/></a></a></span>
> </div>

Looking at the datastructure xml I noticed that - for some obscure
reason - TV had inserted the following code inside the TypoScript for
the image field:

10.stdWrap.typolink.parameter.field = field_link

This was what generated the duplicate a tag. So to solve the problem I
switched my link field from "attribute" to "not mapped" and I was done.

Regards,
  Felix



More information about the TYPO3-project-templavoila mailing list