SilverStripe Elemental Countdown Block
Displays a countdown to a specific date and time., (*1)
, (*2)
, (*3)
Requirements
- silverstripe/recipe-cms: ^4@dev
- dnadesign/silverstripe-elemental: ^4@dev
Installation
composer require dynamic/silverstripe-elemental-countdown
, (*4)
Usage
Elemental Countdown Block will add the following Element to your site:, (*5)
- Countdown (to a date/time specified in the cms)
Template Notes
When overriding the templates/Dynamic/Elements/CountDown/Elements/ElementCountDown.ss
file in your own theme, be sure to include the following in your .countdown
element:, (*6)
data-end="$End $Timezone"
data-elapse="$Elapse"
example: <div class="countdown" data-end="$End $Timezone" data-elapse="$Elapse" ></div>
, (*7)
The above is used in the initialization of the countdown plugin., (*8)
Screen Shots
Front End sample of a Countdown Element
, (*9)
CMS - Countdown Element Main Tab
, (*10)
Getting more elements
See Elemental modules by Dynamic, (*11)
Configuration
See SilverStripe Elemental Configuration, (*12)