承接 ameotoko/contao-countdown 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ameotoko/contao-countdown

最新稳定版本:v1.0.3

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:

  1. Create some content with show until = 23:59:59
  2. Create some other content with show from = 00:00:00
  3. Set countdown to 00:00:00 with reload checked
  4. Go to bed
  5. Even if your visitors keep stare at the screen at midnight, they will see old content disappear and new content show up at midnight
  6. ??????
  7. 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.

统计信息

  • 总下载量: 203
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2022-08-18