Zum Inhalt springen

IMAGE Eistellungn (file.maxW, alt, ...)

Erstellt am 10. November 2009 · 1 Antwort · letzte Antwort am 10. November 2009

Tags: Frage

baumpaul ·

Hallo,

mein Script wandelt mir das Bild nicht auf die Maximalgröße von 110px um sowie gibt er nicht den alt und titel aus.
An was kann es denn liegen?

$markerArray['###IMAGE1###']=$this->cObj->IMAGE(array(
'file' => 'uploads/tx_3colproducts/'.$row['image1'],
'file.maxW' => '110',
'alt' => $row['title'],
'title ' => $row['title'],
));
meckpo ·

Hallo,

das hat zwei unterschiedliche Gründe. Es heisst nicht "alt" und "title" sondern "altText" und "titleText". https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/ContentObjects/Index.html

Ausserdem ist die Notation in PHP etwas anders (beachte den PUNKT!):

$markerArray['###IMAGE1###']=$this->cObj->IMAGE(array(
'file' => 'uploads/tx_3colproducts/'.$row['image1'],
'file.' => array(
              'maxW' => '110'),
'altText' => $row['title'],
'titleText' => $row['title'],
));