v1/web/modules/contrib/field_timer
Gdilove 927f32325b 初始化 2023-11-13 20:36:13 +08:00
..
config/schema 初始化 2023-11-13 20:36:13 +08:00
css 初始化 2023-11-13 20:36:13 +08:00
js 初始化 2023-11-13 20:36:13 +08:00
src/Plugin/Field/FieldFormatter 初始化 2023-11-13 20:36:13 +08:00
tests/src/Functional 初始化 2023-11-13 20:36:13 +08:00
LICENSE.txt 初始化 2023-11-13 20:36:13 +08:00
README.md 初始化 2023-11-13 20:36:13 +08:00
composer.json 初始化 2023-11-13 20:36:13 +08:00
field_timer.info.yml 初始化 2023-11-13 20:36:13 +08:00
field_timer.libraries.yml 初始化 2023-11-13 20:36:13 +08:00

README.md

Field Timer

Description

This module provides datetime field formatters to display the field as a timer or countdown. Module provides 3 field formatters: simple text and 2 formatters based on jQuery plugins: County and jQuery Countdown.

Requirements

Installation

  1. Download the module.
  2. Download required JS libraries to drupal library directory and rename library directories to libraries/county and libraries/jquery.countdown respectively. This module supports jQuery Countdown 2.1.0.
  3. Enable the module using admin module page or drush.

Translation

Translation of 'Text timer or countdown' formatter can be done on the User interface translation page. Translation of jQuery Countdown is not compatible with Drupal translation system. Therefore a special compatibility layer was created in the module. Translation of 'jQuery Countdown' formatter can be done by 2 ways:

  1. In the formatter settings form check option 'Use system language'. In this case it will use the first langcode from the list - current content language, default language, 'en', which will be found in jQuery Countdown translation sets. For example, if content language is Belarusian (by), default language is Russian (ru), then countdown will be displayed in Russian because there is no Belarusian for jQuery Countdown.
  2. You may specify Language option for each language enabled in the system separately. In order to do it uncheck option 'Use system language' in the formatter settings form, export configs with 'drush cex'. After that you need find appropriate entity_view_mode entity config file in the folder with exported configurations, copy the file to the language folder which you want translate to and change in the copied file option 'regional' for your field. Formatter settings cannot be translated via interface yet. See https://www.drupal.org/project/drupal/issues/2546212

Issues, Bugs and Feature Requests

Issues, Bugs and Feature Requests should be made on the page at https://drupal.org/project/issues/2040519.

Creators

This module was created by Sergei Brill