ameotoko / contao-countdown
A Contao CMS extension providing countdown module and content element
Installs: 140
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 1
Language:JavaScript
Type:contao-bundle
Requires
- php: ^7.4 || ^8.1
- contao/core-bundle: ^4.13
- symfony/config: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/http-kernel: ^5.4
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
Install
Install with composer as usual:
composer install ameotoko/contao-countdown
Description
The extension provides a content element and a frontend module for Contao CMS, which allow you quickly set up and show a countdown widget on your website.
The widget itself is beautifully designed and developed by @pqina. Check out the widget's website.
Current limitations
The extension primarily serves the needs of my own projects, so there's not much room for customization at the moment. However, I do plan to add more settings in the future.
You can totally override the templates etc. though.
Usage
After installation, you can add a "Countdown" content element or a frontend module in the back end. They both have same three settings:
End datetime
This is the point in time to count down to. This is set in your server's timezone, but converted to UTC under the hood, meaning – all your visitors from different timezones will see exactly the same time left to D-Day. If it's 1 hour left for you – it's the same 1 hour left for your visitor on the other side of the world, that looks at your site at the same time.
Hide when expired
When checked, the widget will disappear from the page when it reaches zero, without reloading the page, and it will not appear on any subsequent page load. If you need to show your visitors, that they missed something great – do not check this box, and they will see all zeros!
Reload
If checked, the page will refresh itself upon reaching zero on the countdown. Typical use-case:
- Create some content with
show until = 23:59:59
- Create some other content with
show from = 00:00:00
- Set countdown to
00:00:00
withreload
checked - Go to bed
- Even if your visitors keep stare at the screen at midnight, they will see old content disappear and new content show up at midnight
- ??????
- PROFIT
Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information.