我为我的typo3后端创建了一个FlexForm,以选择一些选项:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>
</sheetTitle>
</TCEforms>
<el>
<settings.maxNumber>
<TCEforms>
...
<settings.orderBy>
<TCEforms>
<label>My selections</label>
<config>
<type>select</type>
<renderType>selectSingle</renderType>
<items>
<numIndex index="0">
<numIndex index="0">Title first</numIndex>
<numIndex index="1">title,year,author</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">Year first</numIndex>
<numIndex index="1">year,title,author</numIndex>
</numIndex>
<numIndex index="2">
<numIndex index="0">Author first</numIndex>
<numIndex index="1">author,year,title</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</settings.orderBy>
<!-- end of settings -->
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
我的问题是后端下拉菜单中的第一项是
1. [INVALID VALUE ("author")][author]
2. [INVALID VALUE ("title")][title]
3. [INVALID VALUE ("year")][year]
然后其他选项按预期进行。
答案 0 :(得分:1)
有关“选择”类型的“项”数组的文档中有关第二个值的内容说:
值不能包含“,”(逗号)和“ |” (竖线)。如果要使用“ authMode”,还应该避免使用“:”(冒号)。
https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Select.html#items
这意味着您可能应该对这些值使用不同的分隔符,以避免遇到问题。