选择一个组后,我想要显示与这些组匹配的所有类别。这可能吗?
<settings.flexform.categorygroups>
<TCEforms>
<label>Category</label>
<displayCond>FIELD:switchableControllerActions:=:Job->list</displayCond>
<config>
<type>select</type>
<foreign_table>tx_ext_domain_model_jobcategorygroup</foreign_table>
<minitems>1</minitems>
<maxitems>99</maxitems>
<size>4</size>
</config>
</TCEforms>
</settings.flexform.categorygroups>
<settings.flexform.categories>
<TCEforms>
<label>Category</label>
<displayCond>FIELD:settings.flexform.categorygroups:REQ:true</displayCond>
<config>
<type>select</type>
<foreign_table>tx_ext_domain_model_jobcategory</foreign_table>
<foreign_table_where>AND tx_ext_domain_model_jobcategory.job_category_group IN (###jobcategory###)</foreign_table_where>
<minitems>1</minitems>
<maxitems>99</maxitems>
<size>4</size>
</config>
</TCEforms>
</settings.flexform.categories>
如何填写'IN'?
答案 0 :(得分:0)
在TCA中,有一些标记可用于此类内容。不确定它是否也适用于Flexforms。 https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#foreign-table-where