Zitat von
Webbaumeister
Danke!
Leider funktioniert es nicht.
Könnte es daran liegen, dass im Template block_unsearchable.html5 die headline nicht als Block definiert ist?
PHP-Code:
////block_unsearchable.html5
<!-- indexer::stop -->
<div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>
<?php endif; ?>
<?php $this->block('content'); ?>
<?php $this->endblock(); ?>
</div>
<!-- indexer::continue -->
Sorry, hatte vergessen, dass dieser Block erst in Contao 4 existiert. Dann musst du dein mod_newsarchive Template so gestalten:
PHP-Code:
<!-- indexer::stop -->
<div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if (empty($this->articles)): ?>
<p class="empty"><?= $this->empty ?></p>
<?php else: ?>
<?= implode('', $this->articles) ?>
<?= $this->pagination ?>
<?php endif; ?>
</div>
<!-- indexer::continue -->
Lesezeichen