So sieht mein Template aus:
PHP-Code:
<?php foreach($this->items->parseAll($this->getFormat(), $this->view) as $arrItem):
$picture = \Picture::create($arrItem['raw']['pro_images']['path']['0'], 1);
$picture['alt'] = <?php echo $arrItem['text']['pro_title']; ?>;
$template = new \FrontendTemplate('picture_default');
$template->setData($picture->getTemplateData());
?>
<div class="project-image">
<figure class="image_container">
<a href="<?php echo $arrItem['jumpTo']['url']; ?>">
<?php echo $template->parse(); ?>
</a>
</figure>
</div>
<div class="project-title">
<a href="<?php echo $arrItem['jumpTo']['url']; ?>"><?php echo $arrItem['text']['pro_title']; ?></a>
</div>
<?php endforeach; ?>
wenn ich:
PHP-Code:
$picture['alt'] = <?php echo $arrItem['text']['pro_title']; ?>;
im Template einfüge bekomme ich im Frontend nur noch eine weiße Seite.