Hallo,
ich hab da mal ne Anfängerfrage, ich bau gerade etwas mit Typo3 herum.
Hab die Tabelle tt_content umd die Tabelle image_gallery erweitert.
Dort hab ich im Typo3 BE auf einer Seite 4 Bilder hochgeladen.
Nach etwas rumprobieren wurden mir auch die Bilder ausgegeben image01.jpg,image02.jpg,image03.jpg usw.
über nen explode konnte ich das Ganze auch schön in <li>image01.jpg</li> usw. umwandeln.
Aber wie bekomme ich jetzt den image Tag usw. um das Bild?
Kann mir da vielleicht mal einer helfen?
danke
function main($content,$conf) {
$this->conf = $conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
$this->id=$GLOBALS['TSFE']->id;
#Datensätze holen
$res=$GLOBALS['TYPO3_DB']->exec_SELECTquery(
'*',
'tt_content',
'hidden=0 and deleted=0 and pid='.$this->id,
$groupBy='',
$orderBy='',
$limit='');
while($row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$image=$row['image_gallery'];
}
$array = explode(",", $image);
for($i=0; $i < count($array); $i++) {
$content.="<li>" . $array[$i] . "</li>";
}
return $this->pi_wrapInBaseClass($content);
}