Project

General

Profile

Bug #16166 » 3531_dam_ttcontent.diff

Administrator Admin, 2007-04-11 21:59

View differences:

class.ux_tx_cms_layout.php (Arbeitskopie)
require_once(PATH_txdam.'lib/class.tx_dam_tcefunc.php');
require_once(PATH_txdam.'lib/class.tx_dam_guifunc.php');
$config = $TCA['tt_content']['columns']['tx_damttcontent_files']['config'];
$filesArray = tx_dam_db::getReferencedFiles('tt_content', $row['uid'], $config['MM_match_fields'], $config['MM'], 'tx_dam.*');
// if we are previewing a CE in a draft-workspace, then use the uid of this
// CE and not the uid it will be published under (_ORIG_uid)
if ($row['_ORIG_uid'] && $row['_ORIG_uid'] != $row['uid']) {
$uid = $row['_ORIG_uid'];
} else {
$uid = $row['uid'];
}
$filesArray = tx_dam_db::getReferencedFiles('tt_content', $uid, $config['MM_match_fields'], $config['MM'], 'tx_dam.*');
foreach($filesArray['rows'] as $rowDAM) {
$caption = tx_dam_guiFunc::meta_compileInfoData($rowDAM, '_caption:truncate:100', 'value-string');
(5-5/13)