Feature #15524
closedMoving all HTML fromtx_cssstyledcontent_pi1 to TS
0%
Description
It would be great to move all HTML code from tx_cssstyledcontent_pi1 to TS for TYPO3 4 final release.
I want to make file uploads look like Unordered list:
<UL><LI>...<LI>...</UL>
Since tx_cssstyledcontent_pi1 has hard-coded HTML (instead of using
stdWrap), there is no TS solution for this.
(issue imported from #M2421)
Files
Updated by Stefano Cecere almost 19 years ago
i agree with you, angel_john
could you at least list here all the hardcoded html in tx_cssstyledcontent_pi1 ?
Updated by John Angel almost 19 years ago
class.tx_cssstyledcontent_pi1.php: lines 329 - 364
// Now, lets render the list!
$tRows = array();
foreach($filesData as $key => $fileD) {
// Setting class of table row for odd/even rows:
$oddEven = $key%2 ? 'tr-odd' : 'tr-even';
// Render row, based on the "layout" setting
$tRows[]='
<tr class="'.$oddEven.'">'.($type>0 ? '
<td class="csc-uploads-icon">
'.$fileD['linkedFilenameParts']0.'
</td>' : '').'
<td class="csc-uploads-fileName">
<p>'.$fileD['linkedFilenameParts']1.'</p>'.
($fileD['description'] ? '
<p class="csc-uploads-description">'.htmlspecialchars($fileD['description']).'</p>' : '').'
</td>'.($this->cObj->data['filelink_size'] ? '
<td class="csc-uploads-fileSize">
<p>'.t3lib_div::formatSize($fileD['filesize']).'</p>
</td>' : '').'
</tr>';
}
// Table tag params.
$tableTagParams = $this->getTableAttributes($conf,$type);
$tableTagParams['class'] = 'csc-uploads csc-uploads-'.$type;
// Compile it all into table tags:
$out = '
<table '.t3lib_div::implodeAttributes($tableTagParams).'>
'.implode('',$tRows).'
</table>';
Updated by Administrator Admin almost 19 years ago
You can use the extension CSS_filelinks meanwhile...
Updated by Ernesto Baschny over 18 years ago
This seem to be a task for TYPO3 4.1 (or 4.5?). If someone could send some patches to resolve the issues, it would help.
Updated by Ernesto Baschny over 15 years ago
I just presented my suggestion for this in the core list.
Updated by Ernesto Baschny over 15 years ago
Commited to trunk (will be in 4.3.0), rev. 5655.