X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/0c34dac08605ba275d4ebe4fac7c642b8125f729..24ebbc3e531a181da1c0f0c1971d5775d4d6c284:/t3lib/class.t3lib_loaddbgroup.php diff --git a/t3lib/class.t3lib_loaddbgroup.php b/t3lib/class.t3lib_loaddbgroup.php index 94a48ff6f8d..c370e66fd91 100755 --- a/t3lib/class.t3lib_loaddbgroup.php +++ b/t3lib/class.t3lib_loaddbgroup.php @@ -310,6 +310,9 @@ class t3lib_loadDBGroup { 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 } @@ -342,7 +345,7 @@ class t3lib_loadDBGroup { 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)); }