我正在尝试在我的扩展的flexform中添加'添加向导',但添加按钮没有显示。顺便说一下,柔性表单本身正在工作。我想让后端用户能够从插件配置中添加新项目。ps:重新安装了扩展程序,清除了所有缓存...我的弹性表单:
<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>
selectSingle renderType确实是不可能的。在错误跟踪器中还有一个关于它的新票证:
https://forge.typo3.org/issues/81976
它已经有 19 天的历史了,从外观上看已经有了修复。