Hallo,
gibt es eine Möglichkeit die Download-Links nebeneinander statt untereinander anzuzeigen?
Ich möchte immer 4 Download-Links nebeneinander anzeigen.
Mit Wraps in der Art hätte ich es probiert, funktioniert aber nicht:
tt_content.uploads.20.2.split.1.filelink.stdWrap.wrap =<div class="filelink">|</div>
tt_content.uploads.20.2.split.1.filelink.size.innerWrap =
Ich bekomme weiterhin
<tr class="tr-even">...
im Quellcode...
Hat wer eine Idee?
lg
Herbert
Hallo,
hat echt keiner diese Anforderung???
lg
Herbert
Hallo,
ich habe das Problem gelöst. Leider ist der "<table><tr><td>"-Schmarrn im Quellcode verankert. Ich habe folgendes in class.tx_cssstyledcontent_pi1.php geändert:
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[]='<div class="csc-upload-element">
<div class="'.$oddEven.'">'.($type>0 ? '
<div class="csc-uploads-icon">
'.$fileD['linkedFilenameParts'][0].'
</div>' : '').'
<div class="csc-uploads-fileName">
<p>'.$fileD['linkedFilenameParts'][1].'</p>'.
($fileD['description'] ? '
<p class="csc-uploads-description">'.htmlspecialchars($fileD['description']).'</p>' : '').'
</div>'.($this->cObj->data['filelink_size'] ? '
<div class="csc-uploads-fileSize">
<p>'.t3lib_div::formatSize($fileD['filesize']).'</p>
</div>' : '').'
</div>
</div>';;
}
// Table tag params.
$tableTagParams = $this->getTableAttributes($conf,$type);
$tableTagParams['class'] = 'csc-uploads csc-uploads-'.$type;
// Compile it all into table tags:
$out = '
<div t3lib_div::implodeattributestabletagparams="">
'.implode('',$tRows).'
</div>';
}
Also im Prinzip alles was Table war in DIVs umgesetzt. Wenn man dann noch im css mit float:left; das innere DIV formatiert, dann hat man sogar je nach Breite der Upload-Dateinamen mal 2 und mal 3 Elemente auf einer Seite.
Vielleicht hilft's wem...
lg
Herbert