TYPO3-TCA类型组记录选择器:搜索不起作用

问题描述

我有一个Flexform,其格式为type=group
TYPO3版本是10.4.9。

选择本身正在起作用。
问题是搜索字段,它什么都不做。如果输入搜索词,则什么也没有发生,如果按Enter键,页面将重新加载。 当我打开记录选择器(带有文件夹图标的按钮)时,我可以选择产品,但搜索不正确。我在此处输入的搜索字词导致结果为空。

我发现它似乎只搜索UID,因此我添加了<additionalSearchFields>name,productId</additionalSearchFields>
但它不会改变任何东西。 TYPO3文档说,该向导应在TCA ctrl中为标签搜索列,但显然不起作用。

这是我来自flexform的代码:

<el>
    <settings.product>
        <TCEforms>
            <label>LLL:EXT:productcatalogue/Resources/Private/Language/locallang_be.xlf:productcatalogue_productteaser.product</label>
            <config>
                <type>group</type>
                <suggestOptions type="array">
                    <default type="array">
                        <additionalSearchFields>name,productId</additionalSearchFields>
                    </default>group
                </suggestOptions>
                <internal_type>db</internal_type>
                <allowed>tx_productcatalogue_domain_model_product</allowed>
                <foreign_table>tx_productcatalogue_domain_model_product</foreign_table>
                <maxitems>1</maxitems>
                <minitems>1</minitems>
            </config>
        </TCEforms>
    </settings.product>
</el>

为了记录,我尝试了与TCA相同的配置,同样的问题:/ 我也尝试添加

 <wizards>
    <suggest>
        <type>suggest</type>
        <default>
            <additionalSearchFields>name,productId</additionalSearchFields>
            <searchWholePhrase>0</searchWholePhrase>
        </default>

    </suggest>
</wizards>

也没有变化。

我该怎么做才能在搜索字段中搜索姓名?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...