Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (almost 10 years ago)
- Default Branch: v2
- Last Pushed: 2024-05-23T12:42:36.000Z (7 months ago)
- Last Synced: 2024-10-28T06:08:41.216Z (about 2 months ago)
- Language: JavaScript
- Size: 428 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
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}}'
```