Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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:

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

  • {{page::pageTitle}}

  • ```