Bug #14636 » befunc_dblist.diff
t3lib/class.t3lib_befunc.php 6 Apr 2005 19:32:35 -0000 | ||
---|---|---|
function getRecordTitle($table,$row,$prep=0) {
|
||
global $TCA;
|
||
if (is_array($TCA[$table])) {
|
||
$t = $row[$TCA[$table]['ctrl']['label']];
|
||
$t = t3lib_BEfunc::getProcessedValueExtra($table,$TCA[$table]['ctrl']['label'],$row[$TCA[$table]['ctrl']['label']]);
|
||
if ($TCA[$table]['ctrl']['label_alt'] && ($TCA[$table]['ctrl']['label_alt_force'] || !strcmp($t,''))) {
|
||
$altFields=t3lib_div::trimExplode(',',$TCA[$table]['ctrl']['label_alt'],1);
|
||
$tA=array();
|
||
$tA[]=$t;
|
||
while(list(,$fN)=each($altFields)) {
|
||
$t = $tA[] = trim(strip_tags($row[$fN]));
|
||
$t = $tA[] = trim(strip_tags(t3lib_BEfunc::getProcessedValueExtra($table,$fN,$row[$fN])));
|
||
if (strcmp($t,'') && !$TCA[$table]['ctrl']['label_alt_force']) break;
|
||
}
|
||
if ($TCA[$table]['ctrl']['label_alt_force']) $t=implode(', ',$tA);
|
typo3/class.db_list_extra.inc 6 Apr 2005 19:32:41 -0000 | ||
---|---|---|
$theData = Array();
|
||
foreach($this->fieldArray as $fCol) {
|
||
if ($fCol==$titleCol) {
|
||
$recTitle = t3lib_BEfunc::getProcessedValueExtra($table,$fCol,$row[$fCol],$GLOBALS['BE_USER']->uc['titleLen'],$row['uid']);
|
||
$recTitle=t3lib_BEfunc::getRecordTitle($table,$row);
|
||
$theData[$fCol] = $this->linkWrapItems($table,$row['uid'],$recTitle,$row);
|
||
} elseif ($fCol=='pid') {
|
||
$theData[$fCol]=$row[$fCol];
|