[TYPO3-dev] A patch proposal for listing content elements
Tapio Markula
tapio.markula at dnainternet.net
Tue Apr 4 10:26:42 CEST 2006
Hi
IMO it is not a good idea to hide headers, when
they are empty or the content type is hidden.
No that in Web>List prints [no title] information.
Empty headear could have some text.
All header types, which are not visible in FE
could be dimmed (empty headers, hidden headers and names for CType
shortcut and html)
This could be a patch for the standard page module
// header above the element
if(empty($row['header']))
$row['header']=$GLOBALS['LANG']->sL('LLL:EXT:tm_contentaccess/locallang.php:empty_header');
if($row['header_layout']==100)
$extraText ='
('.$GLOBALS['LANG']->sL('LLL:EXT:tm_contentaccess/locallang.php:hidden_header').')';
#$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_general.php:LGL.hidden')
else $extraText ='';
if(empty($row['header']) || $row['header_layout']==100 ||
$row['CType']=='html' || $row['CType']=='shortcut')
$extraClass=' class="typo3-dimmed"';
else $extraClass="";
if ($row['header'] &&
$confProperties['properties']['TemplaVoilaStyle']){
$outHeaderOver= '<span class="elementHeader">
'.($row['date'] ? htmlspecialchars($this->itemLabels['date'].'
'.t3lib_BEfunc::date($row['date'])).'':'').
$this->infoGif($infoArr).
'<span style="font-weight:bold"
'.$extraClass.'>'.$this->linkEditContent($this->renderText($row['header']),$row).$extraText.'</span></span>';
}
Corresponding could be reasonable for TemplaVoila
More information about the TYPO3-dev
mailing list