stefansl / contao-divider-bundle
Content element and form field for Contao to generate a horizontal rule (hr). Simply choose the element type "divider" and save.
Package info
github.com/stefansl/contao-divider-bundle
Type:contao-bundle
pkg:composer/stefansl/contao-divider-bundle
Requires
- php: ^8.1
- contao/core-bundle: ^5.3 || ^6.0
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/http-foundation: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
Requires (Dev)
- contao/manager-plugin: ^2.12
- contao/test-case: ^5.3 || ^6.0
Suggests
None
Provides
None
Conflicts
None
Replaces
- clickpress/divider: 2.0.0
- contao-legacy/divider: 2.0.0
- stefansl/divider: 2.0.0
This package is auto-updated.
Last update: 2026-10-26 15:46:27 UTC
README
Divider
Content element and form field for Contao to generate a simple hr (horizontal rule). Simply choose the element type "divider" and save.
See the demo here: https://demo.clickpress.de/index.php/divider.html
Requirements
- PHP 8.1+
- Contao 5.3 or Contao 6
Use version 1.x for Contao 4.
Installation
Install with the Contao Manager or with Composer:
composer require stefansl/contao-divider-bundle
Templates
| Element | Template |
|---|---|
| Content element | content_element/divider.html.twig (wrapper class content-divider) |
| Form field | form_divider.html.twig |
The content element is a fragment controller with a modern Twig template. Its
wrapper used to have the class ce_divider, it now has the class
content-divider like all Contao 5 content elements. Custom variants of the
template go into templates/content_element/divider/.
Upgrading from version 1
- The legacy templates
ce_divider.html5andform_divider.html5have been replaced by Twig templates. Convert your customized templates. - Adjust CSS that targets
.ce_dividerto.content-divider. - The classes
StefanSl\DividerBundle\ContentDividerandStefanSl\DividerBundle\WidgetDividerhave been replaced byStefanSl\DividerBundle\Controller\ContentElement\DividerControllerandStefanSl\DividerBundle\Widget\FormDivider.