Ich habe doch noch ein problem bei der ausgabe, die bilder möchte ich als background images ausgeben lassen, aber das funktioniert nicht da der image tag immer erstellt wird.
Hier mein php template für das mm file attribut:
PHP-Code:
<?php if (is_array($this->src)): ?>
<?php foreach($this->src as $arrFile): ?>
<p class="test <?php echo $arrFile['class']; ?>">
<?php echo $this->generateImage($arrFile['src']); ?>
</p>
<?php endforeach; ?>
<?php endif; ?>
Und hier die eigenltiche mm ausgabe:
PHP-Code:
<?php $strRendersettings = ($this->settings)? 'settings' : 'view'; ?>
<?php if (count($this->data)): ?>
<div class="layout_full">
<?php foreach ($this->data as $arrItem): ?>
<div class="item <?php echo $arrItem['class']; ?>">
<div class="field <?php echo $field; ?>">
<?php echo $arrItem['html5']['key_visual_main_image']; ?>
<?php echo $arrItem['html5']['key_visual_small_image']; ?>
</div>
<?php if ($arrItem['jumpTo']['deep']): ?>
<a href="<?php echo $arrItem['jumpTo']['url']; ?>"><?php echo $this->details; ?></a>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<?php else: ?>
<p class="info"><?php echo $this->noItemsMsg; ?></p>
<?php endif; ?>
Lesezeichen