[TYPO3-dam] reading image from DAM in TS

Krystian Szymukowicz t33k.RE.MO.VE at RE.MO.VE.prolabium.com
Tue May 23 15:49:47 CEST 2006


Ernesto Baschny [cron IT] wrote:
> 
> So just call "tx_dam_tsfe->fetchFileList" in an USER object. This should
> return the same as "field = image" in the non-dam variant, so something
> like that might work:
> 
>      10 = IMAGE
>      10.file {
>       import = uploads/pics/
>       import.cObject = USER
>       import.cObject.userFunc = tx_dam_tsfe->fetchFileList
>       import.cObject.refField = <field where you store the dam references>
>       import.listNum = 0
>      }
> 
> Cheers,


Many many tanks Ernesto. It works!


If someone will search that in future - the working TS is:

       10 = IMAGE
       10.file {
        import.cObject = USER
        import.cObject.userFunc = tx_dam_tsfe->fetchFileList
        import.cObject.refField = tx_damttcontent_files
        import.listNum = 0
       }

note that there should be no:

       10.file {
        import = uploads/pics/
       }

--
Krystian



More information about the TYPO3-project-dam mailing list