klimasofa / inserttags
Replace some insert tags within contao
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Type:contao-bundle
pkg:composer/klimasofa/inserttags
Requires
- php: ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5
- contao/core-bundle: ^5.3
- symfony/config: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/http-kernel: ^6.4
Requires (Dev)
- contao/manager-plugin: ^2.6
- laravel/pint: ^1.27
- pestphp/pest: ^4.3
- phpstan/phpstan: ^2.1
- symfony/phpunit-bridge: ^6.4
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
This bundle provides some custom inserttags.
Currently, these inserttags are handled:
| Inserttag | Replacement |
|---|---|
| {{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/.