简体   繁体   English

TYPO3 与向导内联的 TCA

[英]TYPO3 TCA inline with wizard

在此处输入图像描述

In TYPO3 9.5 LTS, Is there a TCA option to change the inline new relation btn (1) to something like the form suggest (2) so that a popup does not appear?在 TYPO3 9.5 LTS 中,是否有一个 TCA 选项可以将内联新关系 btn (1) 更改为类似 suggest (2) 的形式,以便不会出现弹出窗口?

Actually, clicking on button (1) opens a popup to select the product to add.实际上,单击按钮 (1) 会打开一个弹出窗口,显示要添加的产品 select。 I need to avoid this popup with a solution like the one of input field (2) where editor can type some letters and a list of records containing those letters appear.我需要使用输入字段 (2) 之类的解决方案来避免此弹出窗口,编辑器可以在其中输入一些字母,然后出现包含这些字母的记录列表。 Is not mandatory that the selection is same as (2), even a select field populated with the products could do the job.选择与 (2) 相同不是强制性的,即使填充了产品的 select 字段也可以完成这项工作。 The important thing is that it doesn't open a popup.重要的是它不会打开弹出窗口。

I'm not entirely sure what you want to archive.我不完全确定你想要归档什么。 I'd suggest you install the typo3/cms-styleguide package (version ^9.2 should be suitable for TYPO3 9.5).我建议你安装typo3/cms-styleguide package(版本 ^9.2 应该适用于 TYPO3 9.5)。

In the TCA section you can see examples of all possibilities you have with TCA.在 TCA 部分,您可以看到使用 TCA 的所有可能性的示例。

Solved changing the TCA type of the column uid_local that references to the product records from type group to type select and adding the parameter foreign_table with the name of the products table.解决了将引用产品记录的列uid_local的 TCA 类型从类型group更改为类型select并添加带有产品表名称的参数foreign_table

This is the result:这是结果: 在此处输入图像描述

Now, to select a product, the editor just have to choose one from the list.现在,要select个产品,小编只需要从列表中选择一个即可。 No more popup.没有更多的弹出窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM