Search by

stefansl / contao-divider-bundle

stefansl

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

Statistics

Installs: 17 516

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 2

2.0.0 2026-10-26 15:43 UTC

This package is auto-updated.

Last update: 2026-10-26 15:46:27 UTC


README

Contao 4 compatible Version GitHub license

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.html5 and form_divider.html5 have been replaced by Twig templates. Convert your customized templates.
  • Adjust CSS that targets .ce_divider to .content-divider.
  • The classes StefanSl\DividerBundle\ContentDivider and StefanSl\DividerBundle\WidgetDivider have been replaced by StefanSl\DividerBundle\Controller\ContentElement\DividerController and StefanSl\DividerBundle\Widget\FormDivider.