---
title: "IMAGE Eistellungn (file.maxW, alt, ...)"
url: "https://www.typo3.net/d/94329-image-eistellungn-filemaxw-alt"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Bilder","Frage"]
created: "2009-11-10"
last_reply: "2009-11-10"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

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

Extensions › Entwicklung · 1 Antwort · gestartet 2009-11-10

## Eröffnungsbeitrag

**baumpaul** · 2009-11-10 · [Beitrag #1](https://www.typo3.net/d/94329-image-eistellungn-filemaxw-alt/1)

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?

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

## Antworten

### [#2](https://www.typo3.net/d/94329-image-eistellungn-filemaxw-alt/2) · meckpo · 2009-11-10

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!):

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

---

Quelle: „IMAGE Eistellungn (file.maxW, alt, ...)“, typo3.net, https://www.typo3.net/d/94329-image-eistellungn-filemaxw-alt
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
