[TYPO3-templavoila] Problem with FCE - creating linked images
Christophe Stadler
cs at cs-cc.com
Fri Apr 23 08:58:07 CEST 2010
Just bumping this up since i still haven¹t found a solution to this problem
....
On 4/12/10 3:15 PM, in article
mailman.1.1271078331.11601.typo3-project-templavoila at lists.typo3.org,
"Christophe Stadler" <cs at cs-cc.com> wrote:
> Hello,
>
> I came across a problem which i think might be a bug.
>
> I have a relatively simple FCE:
>
>> <div class="discogFlexCont">
>> <div class="flexWrapper">
>> <div class="coverPreviewDiscog"><a href="#"><img></img></a></div>
>> <div class="nameDiscog">nameDisco</div>
>> <div class="titleDiscog">titleDisco</div>
>> </div>
>> </div>
>
> I have mapped .discoFlexCont as my Root element (div|inner)
>
> In the .coverPreviewDiscog, i then have the href of the a tag mapped as an
> Attribute, and used the 'Link field' preset, which gives me the default Data
> Processing Typoscript:
>
>> 10 = TEXT
>> 10.typolink.parameter.current = 1
>> 10.typolink.returnLast = url
>
> I then have the IMG tag mapped with the 'Image field, Fixed W+H' preset, which
> gives me the fllowing typoscript per default:
>
>> 10 = IMAGE
>> 10.file.XY = 200,150
>> 10.file.import = uploads/tx_templavoila/
>> 10.file.import.current = 1
>> 10.file.import.listNum = 0
>> 10.stdWrap.typolink.parameter.field = field_linkrelease1
>
> This is giving me the following output in the FE:
>
>> <div class="flexWrapper">
>>
>> <div class="coverPreviewDiscog">
>> <a href="index.php?id=41"></a>
>> <a href="index.php?id=41"><img src="uploads/tx_templavoila/cbl61_02.jpg"
>> alt="" title="" border="0" height="300" width="300"></a>
>> </div>
>>
>> <div class="nameDiscog"><p class="bodytext">drgyergayerg</p></div>
>> <div class="titleDiscog"><p class="bodytext">ergesrgsetgr</p></div>
>>
>> </div>
>
> The good news is that my href maping into the a tag worked, the bad news is
> that the image is automagically also wrapped into another of the same link.
>
> I first thought that i just have to remove the line from the image
> DataProcessing TS:
>
> 10.stdWrap.typolink.parameter.field = field_linkrelease1
>
> but unfortunately although i can delete this line, it will reappear as soon
> as i load the page once in the FE, i can save the template, clean the cache
> and then when i go back into editing mode the line is not there (as expected
> since i deleted it) but when i load a page in the frontend and then go and
> check again the line has reappeared, in fact the line gets autpmatically added
> twice there:
>
>> 10 = IMAGE
>> 10.file.XY = 200,150
>> 10.file.import = uploads/tx_templavoila/
>> 10.file.import.current = 1
>> 10.file.import.listNum = 0
>> 10.stdWrap.typolink.parameter.field = field_linkrelease1
>> 10.stdWrap.typolink.parameter.field = field_linkrelease1
>
> I don¹t understand what¹s going on, have i misunderstood things and wrapped
> thing the wrong way round, or is it just an error in my typoscript, or is it a
> bug ? Is this the right approach to generating a linked image with FCE¹s (map
> the attribute to the href of a bogus a tag, then map an image field ) ?
>
> I¹m trying to read up for the nth time about the basics of TemplaVoila, FCEs
> and TS, but i thought i¹d post this also so i¹m not chasing ghosts in case it
> is a bug, or maybe a misunderstood feature ...
>
> Thx for any help with this ....
More information about the TYPO3-project-templavoila
mailing list