Sag mir einfach was du brauchst, bin dir dankbar.
Sorry wenn ich nicht an die eine oder andere wichtige Info gedacht habe. Da fehlt mir ein wenig die Verbindung zu dem Bereich.
Hier die Templates:
metamodel_prerendered_custom.html5 (FE Kurse)
PHP-Code:
<?php
echo "<!-- DEBUG START \n";
echo "<pre>\n";
print_r($this->items->parseAll($this->getFormat(), $this->view));
echo "</pre>\n";
echo "\n DEBUG ENDE -->";
?>
<?php if (count($this->data)): ?>
<div class="layout_full">
<?php foreach ($this->data as $arrItem): ?>
<?php $this->block('item'); ?>
<div class="item <?= $arrItem['class'] ?>">
<?php foreach ($arrItem['attributes'] as $field => $strName): ?>
<?php if ((isset($arrItem[$this->getFormat()][$field]) && ($strValue = $arrItem[$this->getFormat()][$field])
|| (isset($arrItem['text'][$field]) && ($strValue = $arrItem['text'][$field])))): ?>
<div class="field <?= $field ?>">
<?php if (!$this->view->get('hideLabels')): ?>
<div class="label"><?= sprintf($GLOBALS['TL_LANG']['MSC']['field_label'], $strName) ?></div>
<?php endif; ?>
<div class="value"> <?= $strValue ?></div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php $this->block('actions'); ?>
<div class="actions">
<?php foreach($arrItem['actions'] as $action): ?>
<?php $this->insert('mm_actionbutton', ['action' => $action]); ?>
<?php endforeach; ?>
</div>
<?php $this->endblock(); ?>
</div>
<?php $this->endblock(); ?>
<?php endforeach; ?>
</div>
<?php else : ?>
<?php $this->block('noItem'); ?>
<p class="info"><?= $this->noItemsMsg ?></p>
<?php $this->endblock(); ?>
<?php endif; ?>
ce_metamodel_list_custom.html5
PHP-Code:
<?php $this->extend($this->searchable ? 'block_searchable' : 'block_unsearchable'); ?>
<?php $this->block('content'); ?>
<div class="labels">
<div class="columnHead">
<div class="headTag">Tag</div>
<div class="headEinstieg">Einstieg möglich am</div>
<div class="headUhrzeit">Uhrzeit</div>
<div class="headAnmeldung clearfix">Anmeldung</div>
</div>
</div>
<?= $this->items ?>
<?= $this->pagination ?>
<?php $this->endblock(); ?>
Screenshot FE bei MM
Bildschirmfoto 2018-01-09 um 11.32.34.png
Lesezeichen