Smart Date

This module extends the smart_date and smart_date_recur token support that is currently available.

Module aims to provide missing token support or tokens that might be handy in some use cases.

Documentation on current token support:
https://www.drupal.org/docs/8/modules/smart-date/using-smart-dates-token...

The smart_date_recur sub-module also supports additional tokens that are currently not documented.

Requirements

Requires the smart_date (Smart Date) module.

Install

Install module via composer:

composer require drupal/smart_date_extra_tokens

Enable via drush:

drush en smart_date_extra_tokens

Configuration/Setup

No additional configuration is required or provided. See information
below regarding provided tokens and usage.

Smart date additional tokens

Tokens provided on smart dates:

value-closest

Grabs the proper start date for smart dates/recurring fields and
formats correctly.

Example of token structure:

[<entity_type>:<field_name>:<delta>:value-closest:<date format>]

Example of token usage:

[node:field_when:0:value-closest:Y-m-d]

end_value-closest

Grabs the closest end date for smart dates/recurring fields and
formats correctly.

Example of token structure:

[<entity_type>:<field_name>:<delta>:end_value-closest:<date format>]

Example of token usage:

[node:field_when:0:end_value-closest:Y-m-d]

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Ecosystem: Smart Date
  • chart icon16 sites report using this module
  • Created by geoanders on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases