TYPO3 8.7.x / Extbase:如何获取 flexform select 树视图值?

TYPO3 8.7.x / Extbase: How to get flexform select treeview values?

我正在为我的扩展插件使用 flexform。有一个树视图,我想从中获取控制器的值。但是我只得到了 $this->settings['kategorien'] 的选定值的数量。

<settings.kategorien>
    <TCEforms>
        <exclude>1</exclude>
        <label>Kategorien</label>
        <config>
            <type>select</type>
            <renderType>selectTree</renderType>
            <foreign_table>tx_myext_domain_model_adresskategorie</foreign_table>
            <foreign_table_where>ORDER BY kategoriename ASC</foreign_table_where>
            <size>20</size>
            <MM>tx_myext_domain_model_ttaddress_adresskategorie</MM>
            <treeConfig>
                <parentField>eltern</parentField>
                <appearance>
                    <expandAll>1</expandAll>
                    <showHeader>1</showHeader>
                </appearance>
            </treeConfig>
            <maxitems>1000</maxitems>
        </config>
    </TCEforms>
</settings.kategorien>

您必须删除 <MM>tx_myext_domain_model_ttaddress_adresskategorie</MM>,因为您在树配置中使用 parentField。如果要使用 MM table,则必须确保 MM table 满足 requirements