PHPackages                             bwein-net/contao-dismissable-banner-element - 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. bwein-net/contao-dismissable-banner-element

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

bwein-net/contao-dismissable-banner-element
===========================================

Dismissable Banner Element for Contao Open Source CMS

1.3.0(4mo ago)21.1kMITPHPPHP ^8.2

Since Jun 27Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/bwein-net/contao-dismissable-banner-element)[ Packagist](https://packagist.org/packages/bwein-net/contao-dismissable-banner-element)[ Docs](https://github.com/bwein-net/contao-dismissable-banner-element)[ GitHub Sponsors](https://github.com/sponsors/rabauss)[ RSS](/packages/bwein-net-contao-dismissable-banner-element/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

Dismissable Banner Element for Contao Open Source CMS
=====================================================

[](#dismissable-banner-element-for-contao-open-source-cms)

This Bundle provides a dismissable banner content element. The dismiss of the banner is stored in the local storage of the browser. The banner will also be shown again after the configured expiry time (default: 30 days) or if it has been modified in the back end since the dismiss of the user.

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

[](#installation)

Install the bundle via Composer:

```
composer require bwein-net/contao-dismissable-banner-element

```

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

[](#configuration)

After the installation you can add and configure new content elements "Dismissable banner" to the articles. You can fill a headline, text, optional link and expiry time of the dismiss for the local storage (default: 30 days).

You can even set some css classes of the included styling for the banner: `success, danger, warning, info`

Styling
-------

[](#styling)

You can override the template [`ce_dismissable_banner.html5`](contao/templates/ce_dismissable_banner.html5) and remove the lines for the included stylesheets or you can extend the template and add the following lines to your new template:

```
// templates/ce_dismissable_banner_nocss.html5
