[TYPO3-templavoila] FCE with a localized DAM image
Ian Solo
ian at webian.it
Sat Sep 1 21:04:57 CEST 2007
Hi!
I made a little step forward.
I found a post of Dmitry and he said to use:
{register:tx_templavoila_pi1.parentRec.uid}
and here i get the uid of the content.
As he said, by instance:
-----------------------------------------------------------------------
10 = TEXT
10.current = 1
10.dataWrap = <h1 id="{register:tx_templavoila_pi1.parentRec.uid}">| </h1>
This will produce something like <h1 id="12345">title</h1>, where 12345
is the uid of tt_content record.
-----------------------------------------------------------------------
But now... where to put this value to pass it to the "fetchFileList"
function? :/ :\
"Ian Solo" <ian at webian.it> ha scritto nel messaggio
news:mailman.1.1188670203.19766.typo3-project-templavoila at lists.netfielders.de...
> Hi!
> I analyzed a little the problem.
> I was using the extension dam_tv_connector to connect the DAM image to the
> FCE.
> I think that this extension don't support localization.
> The function "fetchFileList" of the class "class.tx_damtvc_tsfe.php" of
> this extension is called by this line in the DS:
> -------------------------------------------------------------------
> 10.imgList.cObject.userFunc = tx_damtvc_tsfe->fetchFileList
> -------------------------------------------------------------------
> It seems that this funciont don't consider localized records.
>
> So i tryed to use the function "fetchFileList" of the DAM extension
> (class: class.tx_dam_tsfe.php), calling it with this modified line in the
> DS:
> -------------------------------------------------------------------
> 10.imgList.cObject.userFunc = tx_dam_tsfe->fetchFileList
> -------------------------------------------------------------------
>
> At the moment the variable $uid in this function is always NULL cause I'm
> unable to pass the UID of the content to this function with Typoscript.
>
> I miss something like
> 10.imgList.cObject.uid = <content uid>
>
> Any idea?
>
> My lack in Typoscript knowledge is killing me... but i'm learning :P
>
> My target is to make a DS field of a FCE with a DAM image that can be
> optionally zoomed with Lightbox.
> I think this type of DS field can be very useful.
>
> Well... i go on in my search (alias: open TSref) ;)
> Bye!ian
>
>
> "Ian Solo" <ian at webian.it> ha scritto nel messaggio
> news:mailman.1.1188583067.24721.typo3-project-templavoila at lists.netfielders.de...
>> Hi!
>> I made a FCE that have a DAM field_image.
>> Am I wrong or isn't possible to have a localized version of the image
>> with DAM in FCE?
>>
>> By instance:
>> 1.
>> I have a site with 2 languages: english and deutsch.
>> 2.
>> I make a FCE record for the english with a DAM connected "image_en.jpg".
>> 3.
>> At the moment, in the FE, the page displays the "image_en.jpg" for both
>> english and deutsch.
>> 4.
>> Now I make a german translation of this record and I change the
>> "image_en.jpg" with the "image_de.jpg".
>> 5.
>> Now, in the FE, the page still displays the "image_en.jpg" for both
>> english and deutsch.
>>
>> I attached the DS structure at this message.
>>
>> Thanks in advance for your answer!ian
>>
>>
>
>
More information about the TYPO3-project-templavoila
mailing list