Skip to content

About

ContentElement for Contao to generate hr. Simply choose element type "divider" and save.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

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.

About

ContentElement for Contao to generate hr. Simply choose element type "divider" and save.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages