我工作在一个扩展和一个插件,我想选择特定的记录。为此,我创建了一个具有TCA选择配置的flexform:
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>TEST</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.selection>
<TCEforms>
<exclude>1</exclude>
<label>Selection</label>
<config>
<type>select</type>
<foreign_table>tx_mycollection_domain_model_mycollection</foreign_table>
<renderType>selectCheckBox</renderType>
<size>5</size>
<minItems>3</minItems>
<maxItems>999</maxItems>
<foreign_table_where>AND tx_mycollection_domain_model_mycollection.sys_language_uid=###REC_FIELD_sys_language_uid###</foreign_table_where>
</config>
</TCEforms>
</settings.selection>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>它看起来很好,在后端我有复选框来选择记录。但是,当我保存插件时,只选中/保存第一个复选框。
配置是否有问题,或者是什么原因导致我不能保存multible值?
发布于 2016-05-17 20:57:35
<minItems>3</minItems>
<maxItems>999</maxItems>来自这里的文档:https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#properties
这些需要指定为所有小写,因此将它们更改为:
<minitems>3</minitems>
<maxitems>999</maxitems>应该解决你的问题。它现在只保存了一个,因为在默认情况下,maxitems设置为1。
https://stackoverflow.com/questions/37281300
复制相似问题