Skip to content
Snippets Groups Projects
Commit c3f5dcf5 authored by Susanne Moog's avatar Susanne Moog Committed by Georg Ringer
Browse files

[TASK] Allow editing of crdate in sys_news

As system news are sorted by crdate, the user had no way to influence
the order in which news appeared. While it makes sense to sort by
creation, users should have an option to influence that.

Changing to tstamp would not be a solution, as tstamp changes on every
edit (for example correcting a spelling mistake should not change the
order). Adding an explicit sorting field seems like overkill (and would
need upgrade wizards and DB changes). Therefor TCA has been changed to
allow editing of the creation date for these kinds of records.

Resolves: #90774
Releases: master, 9.5
Change-Id: I1268cbe7be6ed6a241e608b4a8800e19eeb58515
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63762


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarStefan P <spo@snk.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarStefan P <spo@snk.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent d4419d0e
Branches
Tags
No related merge requests found
......@@ -74,13 +74,22 @@ return [
'rows' => 5,
'enableRichtext' => true,
],
]
],
'crdate' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.creationDate',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'default' => 0
],
],
],
'types' => [
'1' => [
'showitem' => '
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
title,content,
title,content,crdate,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
hidden, --palette--;;timeRestriction,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment