首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在foreign_table_where中重用Flexform值

在foreign_table_where中重用Flexform值
EN

Stack Overflow用户
提问于 2016-11-22 22:42:19
回答 1查看 192关注 0票数 0

选择一个组后,我希望看到与这些组匹配的所有类别。这个是可能的吗?

代码语言:javascript
复制
<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”?

EN

回答 1

Stack Overflow用户

发布于 2016-11-22 23:44:42

在TCA中,有一些这类东西的标记。不确定它是否也适用于Flexforms。https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#foreign-table-where

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40744771

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档