[TYPO3-german] Extbase und Flexforms
Hendrik
h.reimers at neonaut.de
Mon Jun 3 15:49:56 CEST 2013
Hi,
ich weiß leider nicht was ich hier falsch mache... Das Flexform
erscheint im BE einfach nicht.
was mache ich falsch?
danke schon mal...
ext_tables.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'Singleitem',
'NN Single Item'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY,
'Configuration/TypoScript', 'NN');
// Include flex forms
$extensionName =
strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY));
$pluginName='Singleitem';
$pluginSignature = $extensionName.'_'.$pluginName;
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] =
'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature,
'FILE:EXT:'.$_EXTKEY . '/Configuration/FlexForms/Singleitem.xml');
das flexform:
<?xml version="1.0" encoding="UTF-8"?>
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Allgemein</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.partial>
<TCEforms>
<label>Layout</label>
<config>
<type>select</type>
<items>
<numIndex index="0">
<numIndex index="0">Vollansicht</numIndex>
<numIndex index="1">FullView</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">Normale Ansicht</numIndex>
<numIndex index="1">DefaultView</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</settings.partial>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
More information about the TYPO3-german
mailing list