[TYPO3-dam] simple Typoscript to render an attachment

Martin Holtz typo3ng_2008 at martinholtz.de
Fri Jan 23 10:55:34 CET 2009


Hi Stefano,

> i have a custom record which holds references to DAM records
> 
> does anybody know a simple way to render the file attchment with
> typoscript?
http://wiki.typo3.org/De:TSref/IMAGE

bild = IMAGE
bild.file.import.cObject = USER
bild.file.import.cObject {
     userFunc=tx_dam_tsfe->fetchFileList
     refField=tx_damttcontent_files
     refTable=tt_content
}
the easiest way to get reffield and reftable is to look into the mm
table of dam.

martin
-- 
Martin Holtz - elemente websolutions http://www.elemente.ms

DocTeam: http://forge.typo3.org/projects/show/team-docteam

http://wiki.typo3.org/Ts45min - TypoScript in "45" minutes
http://wiki.typo3.org/De:ts45min - (auch in Deutsch)


More information about the TYPO3-project-dam mailing list