编程语言
首页 > 编程语言> > php-TYPO3中的FlexForm未显示可切换控制器操作中的元素

php-TYPO3中的FlexForm未显示可切换控制器操作中的元素

作者:互联网

我在弄清楚我的可切换控制器操作出了什么问题时遇到了问题.

我正在使用TYPO3 v7.6.10

在extensionsionkey / Configuration / TCA / Overrides / tt_content.php中输入:

$pluginSignature = 'simpleblog_bloglisting';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:simpleblog/Configuration/FlexForms/FF_Simpleblog_Bloglisting.xml' );

扩展密钥/配置/TCA/FlexForms/FF_Simpleblog_Bloglisting.xml:

<T3DataStructure>
    <sheets>
        <sDEF>
            <ROOT>
                <TCEforms>
                    <sheetTitle>Blog Config</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <settings.blog.max>
                        <TCEforms>
                            <label>Max number of Blogs</label>
                            <config>
                                <type>input</type>
                                <size>2</size>
                                <eval>int</eval>
                                <default>4</default>
                            </config>
                        </TCEforms>
                    </settings.blog.max>
                    <settings.blog.min>
                        <TCEforms>
                            <label>Page Browser</label>
                            <config>
                                <type>group</type>
                                <internal_type>db</internal_type>
                                <allowed>pages</allowed>
                                <size>1</size>
                                <maxitems>1</maxitems>
                                <minitems>0</minitems>
                                <show_thumbs>1</show_thumbs>
                            </config>
                        </TCEforms>
                    </settings.blog.min>
                    <switchableControllerActions>
                        <TCEForms>
                            <label>Type</label>
                            <config>
                                <type>select</type>
                                <items type="array">
                                    <numIndex index="0" type="array">
                                        <numIndex index="0">read only</numIndex>
                                        <numIndex index="1">Blog->list;Blog->show</numIndex>
                                    </numIndex>
                                    <numIndex index="1" type="array">
                                        <numIndex index="0">writable</numIndex>
                                        <numIndex index="1">Blog->list;Blog->show;Blog->deleteConfirm;Blog->delete</numIndex>
                                    </numIndex>
                                </items>
                            </config>
                        </TCEForms>
                    </switchableControllerActions>
                </el>
            </ROOT>
        </sDEF>
    </sheets>
</T3DataStructure>

< settings.blog.max>中的元素.标签会显示,但不会显示在< / switchableControllerActions>中.

解决方法:

我很确定这是以下拼写错误:TCEForms vs TCEforms-看一下f.

标签:fluid,typo3,typo3-7-6-x,extbase,php
来源: https://codeday.me/bug/20191026/1938590.html