PHPackages                             heimrichhannot/contao-blocks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. heimrichhannot/contao-blocks

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

heimrichhannot/contao-blocks
============================

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

2.3.0(2mo ago)18.1k—3.3%1[1 PRs](https://github.com/heimrichhannot/contao-blocks/pulls)2LGPL-3.0-or-laterJavaScriptPHP ^8.2

Since Feb 6Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-blocks)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-blocks)[ Docs](https://github.com/heimrichhannot/contao-blocks)[ RSS](/packages/heimrichhannot-contao-blocks/feed)WikiDiscussions v2 Synced 2w ago

READMEChangelog (10)Dependencies (16)Versions (102)Used By (2)

Blocks [![Boxes icon](public/assets/boxes.svg)](public/assets/boxes.svg)
========================================================================

[](#blocks-)

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

Features
--------

[](#features)

### Hooks

[](#hooks)

NameArgumentsExpected return valueDescriptionrenderCustomBlockModule$objBlockModule, $strReturnthe rendered module as stringAdd custom block module type rendering### Modules

[](#modules)

NameDescriptionModuleBlockChecks the visibility of the block on the current page and renders it according to his type (article, content, module)Help
----

[](#help)

### Get auto\_item title in breadcrumb

[](#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:
