Hallo Leute,
nach einem Update von Contao 4.4 auf 4.9.24 - mit einem älteren Theme das keinen Support mehr erhält - werden bei Nachrichtenbeiträgen keine Teaserbilder mehr angezeigt.
Verantwortlicher Code im Template:
Code:
<div class="nachrichtenteaser_v3 smallview block<?php echo $this->class; ?>">
<div class="autogrid_wrapper">
<?php if ($this->addImage): ?>
<div class="autogrid-first n2 one_fifth autogrid block image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>" <?php echo $col->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="autogrid-last n2 four_fifth autogrid block">
<h4><?php echo $this->text ? $this->linkHeadline : $this->newsHeadline; ?></h4>
<?php if ($this->hasMetaFields): ?>
<div class="info"><?php if ($this->date): ?><div class="date"><?php echo $this->parseDate("d", $this->timestamp); ?> <?php echo $this->parseDate("M", $this->timestamp); ?> <?php echo $this->parseDate("Y", $this->timestamp); ?></div><?php endif; ?><?php if ($this->author): ?><span class="dot">·</span><div class="author"><?php echo $this->author; ?></div><?php endif; ?><?php if ($this->commentCount): ?><span class="dot">·</span><div class="comment"><?php echo $this->commentCount; ?></div><?php endif; ?></div>
<?php endif; ?>
<div class="linkwrapper">
<?php if ($this->text): ?>
<a href="<?php echo $this->link; ?>"><?php echo $GLOBALS['TL_LANG']['MSC']['more']; ?></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
Bei img-Tag wird angegeben:
Code:
<img src="<?php echo $this->src; ?>" <?php echo $col->imgSize; ?> alt="<?php echo $this->alt; ?>" />
In src steht folgendes:
Code:
"src" => "/update/web//update/web/assets/images/2/31-M%20i.G.%20K%C3%B6ppe-9209133a.jpg"
Bis hierher scheint ja alles OK.
Aber im Pfad "/update/web//update/web/assets/images/2/" fehlt das Bild.
Auch nach mehrfachem speichern oder anderer Bildauswahl; immer das gleiche Ergebnis.
In Contao 4.4 funktioniert alles.
Hat da jemand einen Tipp?
Gruß
tschero
fop_template_vars.jpg
Lesezeichen