srhinow/recurring_element

Manage recurring and seasonal content elements for Contao CMS.

Maintainers

Package info

gitlab.com/srhinow/recurring_element

Homepage

Issues

Type:contao-bundle

pkg:composer/srhinow/recurring_element

Statistics

Installs: 449

Dependents: 0

Suggesters: 0

Stars: 0

2.0.0 2026-05-01 21:02 UTC

This package is auto-updated.

Last update: 2026-05-11 02:55:53 UTC


README

Manage recurring and seasonal content elements for Contao CMS — display different content based on date ranges with optional repetition.

Requirements

Version
PHP>= 8.2
Contao>= 5.3

Installation

composer require srhinow/recurring-element-bundle

Concept

Each Recurring Element contains multiple Items with a date range and optional repetition interval. The frontend module displays the item with the highest priority that is currently active.

Recurring Element (tl_recurring_element)
  └── Items (tl_recurring_element_items)
        ├── startDate / endDate
        ├── optional repetition (repeatEach, recurrences)
        ├── optional image
        ├── optional text / headline
        └── priority (highest-priority active item wins)

Usage

  1. Create a Recurring Element in the backend (Content → Recurring Elements)
  2. Add items with date ranges and optional repetition
  3. Add the "Recurring Element: Current Item" frontend module to your page layout
  4. Select the recurring element and optionally a custom template (recel_*)

Template variables

VariableDescription
$this->element['imgPath']Path to the image file
$this->element['alt']Image alt text
$this->element['caption']Image caption
$this->element['cssClass']CSS class
$this->element['addText']Whether text is set
$this->element['headline']Headline (serialized inputUnit)
$this->element['text']Rich text content

Development

./vendor/bin/phpunit
./vendor/bin/php-cs-fixer fix