Issue Bug Closed

#14190CSS_Styled_Content: TABLE should be more configurable

Oliver Klee 06/01/04, 23:46 updated 10/18/10, 19:52

Description

In class.tx_cssstyledcontent_pi1.php, function render_table(), many things are hardcoded that should be configurable instead:

Class of TD and the content wrapping (currently P):

$cellAttribs = ($a>0 && ($cols-1)==$a) ? ‘ class=“td-last”’ : ‘ class=“td-’.$a.’”’;
$newCells[$a] = ‘

‘.$this->cObj->stdWrap($cells[$a],$conf[‘innerStdWrap.’]).’

‘;

Class for the TR:

$rowAttribs = ($k>0 && ($rCount-1)==$k) ? ‘ class=”’.$oddEven.’ tr-last”’ : ‘ class=”’.$oddEven.’ tr-’.$k.’”’;
$rows[$k]=‘
‘.implode(‘’,$newCells).’

Class for the TABLE:

$tableTagParams[‘class’] = ‘contenttable contenttable-’.$type;

This is with CSC 0.1.0.
(issue imported from #M131)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.