我試圖使我可以配置我自己的擴展的FE插件。我嘗試過的flexform配置沒有顯示在後端。 爲什麼它不起作用,我需要改變什麼?我的彈性配置不顯示
我正在使用Typo3 8.7.3。
下面是相關的代碼部分:
ext_tables.php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Fmogge.'.$extKey,
'Nextcourse',
'Nächste Kurse'
);
$extensionName = \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
$frontendpluginName = 'Nextcourse';
$pluginSignature = strtolower($extensionName).'_'.strtolower($frontendpluginName);
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:'.$_EXTKEY.'/Configuration/FlexForms/Nextcourse.xml');
配置/ FlexForms/Nextcourse.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Optionen</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.ort>
<TCEforms>
<label>Ort wählen</label>
<config>
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0"></numIndex>
<numIndex index="1"></numIndex>
</numIndex>
</items>
<foreign_table>tx_coursemanager_domain_model_ort</foreign_table>
<foreign_table_where>
AND elterndatensatz = 0
</foreign_table_where>
</config>
</TCEforms>
</settings.ort>
</el>
</ROOT>
</sDEF>
</sheets>
,它應該是$ GLOBALS的[ 'TCA']代替$ TCA –
$ GLOBALS [ 'TCA']的伎倆!你拯救了我的一天。如果您將其作爲答案發布,我會將其標記爲解決方案。 –
$ TCA [TABLENAME]的使用已過時,但仍可在TYPO3 CMS 8中使用 – jokumer