[TYPO3-dam] dam_ttcontent where is the information stored?

Jochen Rieger j.rieger at connecta.ag
Tue Mar 18 22:50:08 CET 2008


Hey Ron,

> Do you happen to have an elegant way of getting this id's of the DAM 
> pics to a tt_content element at hand?

I once wrote this small function:


function getImageDataFromDam($foreign_uid) {

    // DAM image fields that have to be fetched
    $damImageFields = tx_dam_db::getMetaInfoFieldList() . ', caption, 
alt_text';

    $damImages = tx_dam_db::getReferencedFiles('tx_cagttnews_paragraph', 
$foreign_uid, 'dam_image', 'tx_dam_mm_ref', $damImageFields);

    #t3lib_div::debug($damImages);

    return $damImages;

} // end function getImageFilePathFromDam()


The important (and maybe elegant :) ) part of it is

tx_dam_db::getReferencedFiles(...);

You can find a description of the arguments in

typo3conf/ext/dam/lib/class.tx_dam_db.php

Goodnite,
Jochen

-- 
Connecta AG TYPO3 Development
http://www.connecta.ag


More information about the TYPO3-project-dam mailing list