Also ich habe das ganze jetzt wie folgt gelöst ...
ModulePageimage.php -> folgenden Code hinter Line 76 einfügen (hinter: $this->Template->setData($arrImage); )
Code:
if(version_compare(VERSION.'.'.BUILD, '3.4', '>=')){
$this->Template->setData($arrImage);
$picture = \Picture::create($arrImage['path'], $arrSize)->getTemplateData();
$picture['alt'] = specialchars($arrImage['alt']);
$this->Template->picture = $picture;
}
mod_pageimage.html5 & xhtml:
HTML-Code:
<!-- indexer::stop -->
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<?php if(version_compare(VERSION.'.'.BUILD, '3.4', '>=')): ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php else: ?>
<figure class="image_container"><?php if($this->hasLink): ?><a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?>"><?php endif; ?><img src="<?php echo $this->src; ?>"<?php echo $this->size; ?> alt="<?php echo $this->alt; ?>" /><?php if($this->hasLink): ?></a><?php endif; ?></figure>
<?php endif; ?>
</div>
<!-- indexer::continue -->
Habe es noch nicht getestet, hat jemand zufällig irgend wo eine 3.2er rumliegen mit der das ganze kurz getestet werden kann?
Sonst installiere ich mir bei Gelegenheit eine.
Lesezeichen