PHPackages                             its-bessner/conditional-container - 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. its-bessner/conditional-container

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

its-bessner/conditional-container
=================================

1.4(1y ago)011MITPHP

Since Mar 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/its-bessner/conditional-container)[ Packagist](https://packagist.org/packages/its-bessner/conditional-container)[ RSS](/packages/its-bessner-conditional-container/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (5)Used By (0)

ItsBessner Conditional Container Bundle
=======================================

[](#itsbessner-conditional-container-bundle)

[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)
Custom **Contao CMS** bundle that provides a conditional container element to display content based on specific events or conditions.

---

Features
--------

[](#features)

- **Conditional Content Display**: Allows content to be displayed before or on specific occasions.
- **Day Offset**: Configure how many days before the event the content should be visible.
- **Customizable Settings**: Easily define conditions and display logic.

---

Installation
------------

[](#installation)

1. Install the bundle via Composer:

    ```
    composer require its-bessner/conditional-container-bundle
    ```
2. Add the bundle to your **Contao CMS** project if not automatically registered.
3. Perform the database update through Contao's Install Tool to apply the necessary changes.

---

Configuration
-------------

[](#configuration)

The following settings and translations are included in the bundle:

### Content Element Translations (Example)

[](#content-element-translations-example)

**`CTE` Definition:**

```
$GLOBALS['TL_LANG']['CTE']['itsbessner_conditional_container_element'] = [
    'Conditional Container',
    "Contains events before or at which the content should be displayed."
];
```

### Backend Field Translations

[](#backend-field-translations)

**Selection Field:**

```
$GLOBALS['TL_LANG']['tl_content']['itsbessner_conditional_selection'] = [
    'Condition - Selection',
    "Specify here on which events the content should be displayed."
];
```

**Days Offset:**

```
$GLOBALS['TL_LANG']['tl_content']['itsbessner_conditional_days_before'] = [
    "Lead time in days",
    "How many days before the respective event should the content be displayed?"
];
```

---

Usage
-----

[](#usage)

1. Add the **Conditional Container** content element in the Contao CMS backend.
2. Configure the following:
    - **Condition - Selection**: Select the events or conditions for displaying content.
    - **Lead Time in Days**: Define how many days before the event the content should be visible.
3. Save and publish the content element.

Your content will now be shown based on the specified conditions.

---

License
-------

[](#license)

This bundle is licensed under the [MIT License](LICENSE).
Feel free to use, modify, and distribute it as needed.

---

Contributing
------------

[](#contributing)

We welcome contributions to improve this bundle.
To contribute, please fork the repository, make your changes, and submit a pull request.

---

Support
-------

[](#support)

If you encounter issues or have questions, feel free to open an issue on GitHub or reach out to us.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance45

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

423d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2244591ec5ac6f08853c3bb841a20bc805ff8605474ecd08af11efc84b94495?d=identicon)[harrie](/maintainers/harrie)

---

Top Contributors

[![harrieb](https://avatars.githubusercontent.com/u/49253517?v=4)](https://github.com/harrieb "harrieb (12 commits)")

### Embed Badge

![Health badge](/badges/its-bessner-conditional-container/health.svg)

```
[![Health](https://phpackages.com/badges/its-bessner-conditional-container/health.svg)](https://phpackages.com/packages/its-bessner-conditional-container)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)[inspiredminds/contao-wowjs

Integrates WOW.js for Contao content elements and form fields.

1813.0k](/packages/inspiredminds-contao-wowjs)[inspiredminds/contao-glightbox

Contao extension to integrate GLightbox.

1223.3k1](/packages/inspiredminds-contao-glightbox)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
