klimasofa/inserttags

Replace some insert tags within contao

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Type:contao-bundle

pkg:composer/klimasofa/inserttags

v2.0.0 2026-01-25 20:07 UTC

This package is auto-updated.

Last update: 2026-01-25 20:19:29 UTC


README

PHP version License REUSE status Build status

This bundle provides some custom inserttags.

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}}.

License

Copyright © 2021–2026 Dr. Tobias Quathamer

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.