简体   繁体   English

TYPO3 9.5.7 / Extbase:在 flexform 中添加向导

[英]TYPO3 9.5.7 / Extbase: Add wizard in flexform

I'm trying to add the 'add wizard' in my flexform of my extension, but the add button doesn't show up.我正在尝试在我的扩展程序的 flexform 中添加“添加向导”,但添加按钮没有显示。 The flexform itself is working by the way.顺便说一下,flexform 本身正在起作用。 I want to give the backend users the possibility to add new items from the plugin configuration.我想让后端用户可以从插件配置中添加新项目。 ps: Reinstalled the extension, cleared all the caches... My flexform: ps:重新安装扩展,清除所有缓存......我的flexform:

<T3DataStructure>
<sheets>
    <sDEF>
        <ROOT>
            <TCEforms>
                <sheetTitle>Viewer Configuration</sheetTitle>
            </TCEforms>
            <type>array</type>
            <el>
                <settings.viewer>
                    <TCEforms>
                        <label>Viewer select</label>
                        <config>
                            <type>select</type>
                            <renderType>selectSingle</renderType>
                            <size>1</size>
                            <minitems>0</minitems>
                            <maxitems>1</maxitems>
                            <foreign_table>tx_myext_domain_model_viewer</foreign_table>
                            <foreign_table_where>AND tx_myext_domain_model_viewer.deleted = 0 AND tx_myext_domain_model_viewer.hidden = 0 AND tx_myext_domain_model_viewer.pid = ###CURRENT_PID### ORDER BY tx_myext_domain_model_viewer.name</foreign_table_where>
                            <wizards>
                                <add>
                                    <type>script</type>
                                    <title>Create</title>
                                    <icon>EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif</icon>
                                    <params>
                                        <table>tx_myext_domain_model_viewer</table>
                                        <setValue>set</setValue>
                                        <pid>###CURRENT_PID###</pid>
                                    </params>
                                    <module>
                                        <name>wizard_add</name>
                                    </module>
                                </add>
                            </wizards>
                        </config>
                    </TCEforms>
                </settings.viewer>
            </el>
        </ROOT>
    </sDEF>
</sheets>
</T3DataStructure>

It is indeed still impossible with selectSingle renderType.使用 selectSingle renderType 确实仍然是不可能的。 There is also a new ticket in bugtracker about it here:在 bugtracker 中还有一张关于它的新票:

https://forge.typo3.org/issues/81976

It is 19 days old and there is already a fix by the looks of it.它已经 19 天了,从它的外观来看已经有了修复。

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

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