问题标签 [typo3-10.x]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
560 浏览

php - TYPO3 v10 如何在 FrontEnd 中获取对象的 crdate 或 tstamp

我正在使用 TYPO3 v10,并且我已经构建了一个扩展。

在前端的某些部分,我需要获取 crdate 或 tstamp。TYPO3 没有用于检索它们的 getter 和 setter。

在 TYPO3 v10 之前,您可以执行以下操作:

此致,

0 投票
2 回答
339 浏览

routes - TYPO3 felogin - 如何通过 Hook 将 preserveGETvars 或 redirect_url 设置为实际页面?

TYPO3:v10.4.2

我的问题:
我的模板中有一个 LoginForm 在菜单中可见。我只想能够在用户所在的任何地方登录并重新加载同一页面。
这适用于普通页面......
但是!当我们在 NewsItem 或任何扩展的另一个详细信息端时,它不采用重新加载同一页面所必需的参数。什么导致Required argument "news" is not set for...

我试图以某种方式将参数获取到 felogin - 就是这样preserveGETvars- 但这无济于事。不知道它是如何工作的。

我的另一个想法是为 felogin 提供要重定向的实际页面的总 uri。纪录片中提到了一个钩子,但我不知道如何使用钩子。:/

为什么配置这么难。我只想让分机登录并再次打开同一页面。这不是很常见吗?:((

我希望有人能帮助我。

Setup-Config:我看到并尝试过,但没有效果。

我也尝试了很多preserveGETvars

文档说 preserveGETvars = tx_ttnews[tt_news] ,tx_myext[id],... - 但接缝真的很旧。我试过了,根本不起作用。:/

0 投票
1 回答
172 浏览

.htaccess - 如何让 TYPO3 对丢失的文件进行错误处理和重定向

默认情况下,htaccess 会阻止对已知文件存储的重定向,例如 fileadmin 目录:

但这也可以防止 TYPO3 错误处理和重定向模块在文件不存在时采取行动。

我们的编辑希望为一些已删除的文件设置重定向,我想知道如果我不从 RewriteRule 中排除 fileadmin 是否有任何负面影响。

为什么这个规则甚至默认存在?

这是完整的 TYPO3 默认重写,以使上下文更易于理解:

0 投票
1 回答
120 浏览

typo3-10.x - 在 TYPO3 10.4 上找不到语言选项

最近我们决定将我们的网站从 TYPO3 9.5 升级到 TYPO3 10.4。我们安装了全新的 TYPO3 安装。但是安装后当我尝试设置语言选项时,我在 web > list 下找不到它。请参阅所附图像。如果我遗漏了什么,谁能告诉我?

提前致谢。 问候普拉松TYPO3 10 列表视图 TYPO3 9 列表视图

0 投票
1 回答
538 浏览

typo3 - 升级到 TYPO3 10 后文件上传 TCA 出现问题

在typo3v9上,我有这个TCA配置的工作文件上传字段:

我得到这个结果: 在此处输入图像描述

但是在迁移到typo3v10后它不能正常工作并给出以下结果:

在此处输入图像描述

有人有单个文件上传字段的工作解决方案吗?

0 投票
1 回答
945 浏览

typo3 - 如何在typo3 V10的extbase控制器中重定向到404页面

在 TYPO3 v10 中,您不能再使用 $TSFE->pageNotFoundAndExit() 了。但是$this->request在使用 ErrorController PageNotFound 方法时,在控制器动作中会出现异常。

0 投票
1 回答
360 浏览

typo3 - Plesk - TYPO3 10LTS - 客户端在尝试访问页面模块时被服务器配置错误拒绝并被锁定

我通过 composer linux plesk obsidian 18.0.27 和 ubuntu 16lts 安装了一个新的typo3 10lts。

尝试访问页面模块时,我在 error_log 中收到此类错误:

...浏览器死机,我的 IP 被扔进了 fail2boan。

在同一台服务器上,我有另一个具有相同 php 设置的测试域,并通过 plesk 安装了 TYPO3,一切正常……但他们有一个旧的 8.7LTS。

此外,在尝试安装介绍包时,我得到 tis 错误:

我该如何解决这个问题以及我需要做什么(逐步)?

php 7.3 阿帕奇 4.2

0 投票
0 回答
240 浏览

typo3 - TYPO3 v10.4 - Incorrect integer value during persistence

I try to update a task from TYPO3 9.5 to 10.4 (extending AbstractTask - not Symfony Command). Now I get this error message:

I've tried many different things but I cannot solve this error... In the TCA of the organisation, for the field organisation_group there is definitly 'default' => 0 set.

The Database field is set in ext_tables.sql like:

The Organisation Group is an ObjectStorage, the error appears when $this->persistenceManager->persistAll() is called. If I debug the organisation one line before persistation, everything looks good to me.

Any ideas where I can search?

Before anyone suggests it - disabling the DB strict mode is no option :)

EDIT:
This Message tells me, maybe I don't have to search in TCA. This field got deleted from ext_tables.sql and renamed by the DB compare tool. After it was renamed, the error still is triggered by this field. So, I'll now start to delete all fields and let TYPO3 create it again. Maybe there is only a misconfiguration of some fields in the database. Error with deleted field

EDIT 2:
Now I can run this task, when I remove the field organisation_group from the TCA.
All other fields (+/- 10) that throws the same error, could be fixed by deleting and recreate, or by allowing null in e.g. field_xy text null,.

Only the field organisatio_group, still throws the error when I reenable it in TCA.

Here's the TCA - maybe anyone have another idea :/

0 投票
1 回答
121 浏览

indexing - TYPO3 FAL:索引文件

当您访问 admin Filelist 模块中的目录时,其中的文件会被自动索引,但对于大量文件(大约 10.000 个),这不是一种可行的方法。是否有脚本/命令可以索引 FAL 中的整个目录?

编辑:TYPO3 版本是 10.4.1 LTS。

0 投票
1 回答
171 浏览

typo3 - TYPO3:如何显示页面树外文件夹中的记录

在我的 TYPO3 安装中,我在两个单独的页面树中配置了两个网站。现在我想在网站 A 中显示自定义扩展的记录,但该记录存储在网站 B 的页面树中。

这是我的控制器中的 showAction:

在存储库中,我使用以下代码行禁用了存储页面限制:

在网站 A 上显示存储在网站 A 的页面树中的记录,没有任何问题。但是,一旦我尝试在网站 A 上加载网站 B 的页面树的记录,它就会失败。

那么是否可以显示存储在页面树之外的记录?