heimrichhannot/contao-blocks

Contao blocks bundle is a site-dependent container, that manipulates the visibility of elements.

Installs: 6 628

Dependents: 2

Suggesters: 1

Security: 0

Stars: 1

Watchers: 7

Forks: 0

Open Issues: 0

Language:JavaScript

Type:contao-bundle

2.0.1 2024-05-23 12:42 UTC

README

Contao blocks module is a site-dependent container, that manipulates the visibility of elements.

Features

Hooks

Modules

Help

Get auto_item title in breadcrumb

Due a limitation in contao it is not possible to set the auto_item title from the breadcrumb hook (instead the containing page is shown twice), so you need to change the mod_breadcrumb template instead:

// Find this lines:
 
<?php if ($item['isActive']): ?>
    <li class="active<?php if ($item['class']): ?> <?= $item['class'] ?><?php endif; ?> last"><?= $item['pageTitle'] ?: $item['title'] ?></li>

// Replace '<?= $item['pageTitle'] ?: $item['title'] ?>' with '{{page::pageTitle}}'

<?php if ($item['isActive']): ?>
    <li class="active<?php if ($item['class']): ?> <?= $item['class'] ?><?php endif; ?> last">{{page::pageTitle}}</li>