Bug #16514 ยป label_alt-new.diff
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
while(list(,$pp)=each($itemArray)) {
|
||
$pRec = t3lib_BEfunc::getRecordWSOL($pp['table'],$pp['id']);
|
||
if (is_array($pRec)) {
|
||
$pTitle = t3lib_div::fixed_lgd_cs($this->noTitle($pRec[$GLOBALS['TCA'][$pp['table']]['ctrl']['label']]),$this->titleLen);
|
||
$pTitle = t3lib_div::fixed_lgd_cs($this->noTitle(t3lib_BEfunc::getRecordTitle($pp['table'], $pRec)),$this->titleLen);
|
||
$pUid = $pp['table'].'_'.$pp['id'];
|
||
$uidList[]=$pUid;
|
||
$opt[]='<option value="'.htmlspecialchars($pUid).'">'.htmlspecialchars($pTitle).'</option>';
|
t3lib/class.t3lib_befunc.php (working copy) | ||
---|---|---|
case 'select':
|
||
if ($theColConf['MM']) {
|
||
// Display the title of MM related records in lists
|
||
$MMfield = $noRecordLookup?'uid':$TCA[$theColConf['foreign_table']]['ctrl']['label'];
|
||
if ($noRecordLookup) {
|
||
$MMfield = $theColConf['foreign_table'].'.uid';
|
||
} else {
|
||
$MMfields = array($theColConf['foreign_table'].'.'.$TCA[$theColConf['foreign_table']]['ctrl']['label']);
|
||
foreach (t3lib_div::trimExplode(',', $TCA[$theColConf['foreign_table']]['ctrl']['label_alt'], 1) as $f) {
|
||
$MMfields[] = $theColConf['foreign_table'].'.'.$f;
|
||
}
|
||
$MMfield = join(',',$MMfields);
|
||
}
|
||
$MMres = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query(
|
||
$theColConf['foreign_table'].'.'.$MMfield,
|
||
$MMfield,
|
||
($table!=$theColConf['foreign_table']?$table:''),
|
||
$theColConf['MM'],
|
||
$theColConf['foreign_table'],
|
||
... | ... | |
);
|
||
if ($MMres) {
|
||
while($MMrow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($MMres)) {
|
||
$mmlA[] = $MMrow[$MMfield];
|
||
$mmlA[] = ($noRecordLookup?$MMrow['uid']:t3lib_BEfunc::getRecordTitle($theColConf['foreign_table'], $MMrow));
|
||
}
|
||
if (is_array($mmlA)) {
|
||
$l=implode(', ',$mmlA);
|
||
$l=implode('; ',$mmlA);
|
||
} else {
|
||
$l = '';
|
||
}
|
t3lib/class.t3lib_loaddbgroup.php (working copy) | ||
---|---|---|
if ($GLOBALS['TCA'][$key]['ctrl']['label']) {
|
||
$from.= ','.$GLOBALS['TCA'][$key]['ctrl']['label']; // Titel
|
||
}
|
||
if ($GLOBALS['TCA'][$key]['ctrl']['label_alt']) {
|
||
$from.= ','.$GLOBALS['TCA'][$key]['ctrl']['label_alt']; // Alternative Title-Fields
|
||
}
|
||
if ($GLOBALS['TCA'][$key]['ctrl']['thumbnail']) {
|
||
$from.= ','.$GLOBALS['TCA'][$key]['ctrl']['thumbnail']; // Thumbnail
|
||
}
|
||
... | ... | |
foreach($this->itemArray as $key => $val) {
|
||
$theRow = $this->results[$val['table']][$val['id']];
|
||
if ($theRow && is_array($TCA[$val['table']])) {
|
||
$label = t3lib_div::fixed_lgd_cs(strip_tags($theRow[$TCA[$val['table']]['ctrl']['label']]),$titleLen);
|
||
$label = t3lib_div::fixed_lgd_cs(strip_tags(t3lib_BEfunc::getRecordTitle($val['table'], $theRow)),$titleLen);
|
||
$label = ($label)?$label:'[...]';
|
||
$output[]=str_replace(',','',$val['table'].'_'.$val['id'].'|'.rawurlencode($label));
|
||
}
|
typo3/class.browse_links.php (working copy) | ||
---|---|---|
$code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code,$this->fixedL));
|
||
}
|
||
$titleCol = $TCA[$table]['ctrl']['label'];
|
||
$title = $row[$titleCol];
|
||
$title = t3lib_BEfunc::getRecordTitle($table,$row);
|
||
$ficon = t3lib_iconWorks::getIcon($table,$row);
|
||
$aOnClick = "return insertElement('".$table."', '".$row['uid']."', 'db', ".t3lib_div::quoteJSvalue($title).", '', '', '".$ficon."');";
|
||
$ATag = '<a href="#" onclick="'.$aOnClick.'">';
|