[TYPO3-templavoila] Inserting Image<->Link Pairs
Felix Buenemann
Felix.Buenemann at gmx.de
Fri Mar 20 14:01:38 CET 2009
Am 20.03.2009 13:24 Uhr, Felix Buenemann schrieb:
> Hi Steffen,
>
> Am 20.03.2009 10:59 Uhr, Steffen Kamper schrieb:
>> Hi,
>>
>> Felix Buenemann schrieb:
>>> Am 03.11.2008 8:52 Uhr, Steffen Kamper schrieb:
>>>> Hi,
>>>>
>>>> I solved it with a section, givving a image field and a link field for
>>>> each.
>>>>
>>>> vg Steffen
>>> I have tried Steffen's suggestion using a section, container, one
>>> element and one attribute.
>>>
>>> Using the following (example) html:
>>> <div id="images">
>>> <a href="#img1"><img src="img1.jpg"/></a>
>>> <a href="#img2"><img src="img2.jpg"/></a>
>>> </div>
>>>
>> why 2 images and range? Use one and map it.
> Because the design template included several images to illustrate the
> desired design. I changed the content element to map to a:outer of a[1],
> which also caused the a tag to be swallowed. It seems to be a bug in TV,
> as it allows to map the field with a:inner mapping rule inside the
> content element with a:outer rule.
> It seems I have to modify the html template and add an enclosing div to
> solve this.
OK, I retried with the following code:
<div id="bilder">
<span><a href="#"><img src=""/></a></span>
</div>
The section was mapped to div#bilder:inner, container element to
span:outer, picture element to a:inner, link attribute to a:attr:href.
Output:
<div id="bilder">
</div>
When mapping container elment to span:inner:
<div id="bilder">
<span></span>
</div>
Still no links/pics are shown.
>
>> vg Steffen
>
> Regards,
> Felix
Regards,
Felix
More information about the TYPO3-project-templavoila
mailing list