https://github.com/heimrichhannot/contao-blocks
Contao blocks module is a site-dependent container, that manipulates the visibility of elements.
https://github.com/heimrichhannot/contao-blocks
Last synced: 2 months ago
JSON representation
Contao blocks module is a site-dependent container, that manipulates the visibility of elements.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-blocks
- Owner: heimrichhannot
- Created: 2015-01-27T11:31:26.000Z (over 10 years ago)
- Default Branch: v2
- Last Pushed: 2025-01-23T16:57:05.000Z (6 months ago)
- Last Synced: 2025-04-25T22:06:57.132Z (3 months ago)
- Language: JavaScript
- Size: 431 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Blocks
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:
```php
// Find this lines:
// Replace '= $item['pageTitle'] ?: $item['title'] ?>' with '{{page::pageTitle}}'
```