Hallo, ich habe ein Problem, ich habe gerade mein Template zur Ausgabe meines Kataloges bearbeitet, es funktioniert auch alles, bis auf das ich nun jeweils 5 mal dieselbe Ausgabe eines Katalogfeldes habe.
Nun meine Frage, da ich fast am verzweifeln bin, wo liegt der Fehler?
Hier mal meinen Code der catalog_full.tpl
und hierum handelt es sich
Danke im voraus für die Antworten.
Gruß und schönes WE
pixxelweb.de
Nun meine Frage, da ich fast am verzweifeln bin, wo liegt der Fehler?
Hier mal meinen Code der catalog_full.tpl
Code:
<?php if (count($this->entries)): ?>
<div class="layout_full">
<?php foreach ($this->entries as $entry): ?>
<div class="item<?php echo $entry['class'] ? ' '.$entry['class'] : ''; ?>">
<?php foreach ($entry['data'] as $field=>$data): ?>
<?php if (strlen($data['raw']) && !in_array($field, array('catalog_name','parentJumpTo'))): ?>
<table>
<tr>
<td>
<div class="bild"><?php echo $entry['data']['Bild']['value']; ?></div></td>
<td>
<div class="daten">
<?php echo $entry['data']['Restaurant']['value']; ?><br/>
<?php echo $entry['data']['Adresse']['value']; ?><br/>
Telefon: <?php echo $entry['data']['Telefon']['value']; ?><br/>
<?php echo $entry['data']['Web']['value']; ?><br/>
</div></td>
</td>
</tr>
</table>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
<?php else: ?>
<p class="info">Invalid item reference for catalog.</p>
<?php endif; ?>
Danke im voraus für die Antworten.
Gruß und schönes WE
pixxelweb.de
Kommentar