From 417fbfb662b11a8c9faa0850c7d205e5800aebd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6rner?= Date: Fri, 1 Mar 2024 10:54:45 +0100 Subject: [PATCH] prepared 3.1.0 --- CHANGELOG.md | 4 ++++ README.md | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ad1a404..de80265e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. + +## [3.1.0] - 2024-03-01 +- Added: DateAddedField ([#74](https://github.com/heimrichhannot/contao-utils-bundle/pull/74)) + ## [3.0.0] - 2024-02-19 This version is a complete reworked version of utils bundle. The goal was to have a non-inversive bundle of useful helpers for contao. diff --git a/README.md b/README.md index 6f8867e2..2a243b19 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,17 @@ AuthorField::register('tl_example') ; ``` +#### Date added field + +Add a date added field to your dca. It will set a timestamp on create or copy. + +```php +# contao/dca/tl_example.php +use HeimrichHannot\UtilsBundle\Dca\DateAddedField; + +DateAddedField::register('tl_example'); +``` + ### Entity Finder