heimrichhannot / contao-blocks
Contao blocks module is a site-dependent container, that manipulates the visibility of elements.
Installs: 5 183
Dependents: 2
Suggesters: 1
Security: 0
Stars: 1
Watchers: 7
Forks: 0
Open Issues: 0
Language:JavaScript
Type:contao-module
Requires
- php: ^7.0|^8.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^3.5.1 || ~4.1
Suggests
- heimrichhannot/contao-utils-bundle: Improves performance by using the huh.utils.cache.database_tree service to load tl_page childRecords from cache
- dev-master
- 1.10.1
- 1.10.0
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- dev-php5
This package is auto-updated.
Last update: 2023-01-27 08:37:27 UTC
README
Contao blocks module is a site-dependent container, that manipulates the visibility of elements.
Features
Hooks
Name | Arguments | Expected return value | Description |
---|---|---|---|
renderCustomBlockModule | $objBlockModule, $strReturn | the rendered module as string | Add custom block module type rendering |
Modules
Name | Description |
---|---|
ModuleBlock | Checks the visibility of the block on the current page and renders it according to his type (article, content, module) |
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>