ameotoko/contao-countdown
Composer 安装命令:
composer require ameotoko/contao-countdown
包简介
A Contao CMS extension providing countdown module and content element
README 文档
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:00withreloadchecked - 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.
ameotoko/contao-countdown 适用场景与选型建议
ameotoko/contao-countdown 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 203 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 08 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ameotoko/contao-countdown 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ameotoko/contao-countdown 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 203
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2022-08-18

