Hey,
ich versuche gerade eine MetaModel Ausgabe zu bauen, die unter anderem auch den Inhalt von tags ausgeben soll.
Um meine Ausgabe zu erzeugen habe ich das Template metamodel_prerendered.html5 umgebaut. Das klappt bis auf die tags auch ganz gut. Diese werden nämlich jetzt als Kommagetrente Wörter ausgegeben. Ich würde die Ausgabe aber lieber so aufbauen, dass die tags als Listenelemente ausgegeben werden.
Das ist der Quellcode für meine Ausgabe (metamodel_prerendered.html5):
PHP-Code:
<?php $strRendersettings = ($this->settings)? 'settings' : 'view'; ?>
<?php if (count($this->data)): ?>
<div class="layout_full">
<div class="ce_table block">
<table>
<thead>
<tr>
<th class="head_0 col_first"> </th>
<th class="head_1">Product</th>
<th class="head_2">Market<br>Segment</th>
<th class="head_3">Use Case</th>
<th class="head_4">Product Type</th>
<th class="head_5 col_last">Data-<br>sheet</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->data as $arrItem): ?>
<tr>
<td class="col_0 col_first"><p><?php echo $arrItem['html5']['picture']; ?></p></td>
<td class="col_1"><p><?php echo $arrItem['text']['name']; ?></p></td>
<td class="col_2"><?php echo $arrItem['text']['market_segment']; ?></td>
<td class="col_3"><p><?php echo $arrItem['text']['use_case']; ?></p></td>
<td class="col_4"><p><?php echo $arrItem['text']['products_type']; ?></p></td>
<td class="col_5 col_last"><p><a href="files/content/Products_Services/Datasheet/1_Inlay_and_Tags/1_1_Inlays_and_Labels/HF/PDF/BAND%20ILT.pdf"><img width="18" height="18" alt="" src="files/img/iconPDF.gif"></a></p></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php endif; ?>
Ich glaube das Problem ist, dass ich die Ausgabe über
PHP-Code:
<?php echo $arrItem['text']['market_segment']; ?>
machen will. Wie könnte ich das Ganze denn so anpassen, dass ich das z.B. als Listen ausgeben könnte?
Würde mich über den ein oder anderen Tipp freuen, vielen Dank.
Lesezeichen