简体   繁体   English

可转换控制器中的元素动作未在TYPO3中由FlexForm显示

[英]Elements in Switchable Controller Actions not being displayed by FlexForm in TYPO3

I am having problem figuring out what is wrong with my Switchable Controller Actions. 我有问题弄清楚我的可切换控制器动作有什么问题。

I'm using TYPO3 v7.6.10 我正在使用TYPO3 v7.6.10

Entry in extentionkey/Configuration/TCA/Overrides/tt_content.php: 在extentionkey / 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' );

extentionkey/Configuration/TCA/FlexForms/FF_Simpleblog_Bloglisting.xml: extentionkey /配置/ 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>

The elements within the <settings.blog.max> tags are displayed, but not that within </switchableControllerActions> 显示<settings.blog.max>标记内的元素,但不显示在</switchableControllerActions>的元素

我很确定它是以下错字: TCEForms vs TCEforms - 看看f

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM