Seite 13 von 17
4. Neue Tabellen-Ausgabe einbauen
Ganz unten vor:
</div>
einfügen:
<?php if (!empty($this->item->jcfields)) : ?>
<table class="custom-fields-table">
<tbody>
<?php foreach ($this->item->jcfields as $field) : ?>
<?php if (!empty($field->value)) : ?>
<tr>
<th><?php echo htmlspecialchars($field->title); ?></th>
<td><?php echo $field->rawvalue; ?></td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<table class="custom-fields-table">
<tbody>
<?php foreach ($this->item->jcfields as $field) : ?>
<?php if (!empty($field->value)) : ?>
<tr>
<th><?php echo htmlspecialchars($field->title); ?></th>
<td><?php echo $field->rawvalue; ?></td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
Speichern.