typo3 - Typo3 tt_news disabled date
问题描述
I am facing problem with tt_news in typo3 version 6.2.11. I can not set date above 2020 year. I can set till 31.12.2020 and after that all dates are disabled. I have taken 2 screenshot of it. Any hint or solution would help me.
Thanks
解决方案
tt_news has a hardcoded maximum for the end date, which in the version you're using is 31-12-2020. The best advice is to upgrade. TYPO3 6.2 isn't supported anymore.
However, if you need a quick fix, you'll need to change it in the TCA file of tt_news. You can find that in typo3conf/ext/tt_news/tca.php
or typo3conf/ext/tt_news/Configuration/TCA/tt_news.php
depending on which version of the extension you're using.
This file contains an array with the configuration of the fields for this table. For the field endtime
it should contain something like this:
'range' => [
'upper' => mktime(0, 0, 0, 31, 12, 2020)
]
You'll need to change that date.
推荐阅读
- java - 使用 Greedy 找到最小浪费会给出不正确的输出
- mongodb - 如何从 MongoDb 函数中查询集合?
- c# - 如何将集合中的集合绑定到上下文菜单并通过单击获取上下文菜单项
- c# - 使用rotativa导出pdf时如何避免动态列表中的分页符?
- python - 如何使用python标记域和子域?
- angular - 如何在 Angular 中使用 ForkJoin 进行 POST 方法
- windows - 如何将 IntelliJ Docker 集成连接到 Docker 桌面(适用于 Windows 10)
- python - 我有一个列表,我希望列表的每个元素都作为一行
- python - 我在建立连接时遇到问题“我发送了消息,但是我没有得到回复”
- javascript - Javascript 在内部更改数组值,有什么解决办法吗?