[TYPO3-dam] dam_ttcontent where is the information stored?
Dr. Ronald P. Steiner
Ronald.Steiner at googlemail.com
Wed Mar 19 21:20:20 CET 2008
Hi Jochen,
thank you for the function.
- but I can't figure out how to get it in work.
@param ... is the uid of the content element?
@return ... is the image file path?
greetings
Ron
Jochen Rieger schrieb:
> 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
>
More information about the TYPO3-project-dam
mailing list