klimasofa/inserttags

Replace some insert tags within contao

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Type:contao-bundle

v1.1.2 2022-01-08 15:25 UTC

This package is auto-updated.

Last update: 2024-04-26 20:00:08 UTC


README

This bundle provides some custom inserttags for klimasofa.

Currently, these inserttags are handled:

InserttagReplacement
{{CO2}}CO2
{{current_age::*}}Current age in years

Example

{{current_age::2006-07-25}} will return 14 on 16 February 2021, and 15 on 6 November 2021.

The allowed date formats for the birthday are YYYY-MM-DD and DD.MM.YYYY. Both the day (DD) and month (MM) may omit the leading zero. So this is fine: {{current_age::1982-6-9}}.