[TYPO3-dev] Plugin Config Flexform

Jigal van Hemert jigal.van.hemert at typo3.org
Wed Mar 16 14:41:29 CET 2016


Hi,

On 16/03/2016 10:59, Roman Pretory wrote:
> I use 7.6.LTS and want to create a plugin config Flexform .
>
> What I did without sucess :
>
> /typo3conf/ext/check_dns/Configuration/TCA/Overrides/tt_content.php
> <?php
>
> $pluginSignature = 'check_dns';

This should be the extension key without underscores plus an underscore 
and the plugin name.

Usually you can use:

$pluginSignature = str_replace('_', '', $_EXTKEY) . '_myplugin';

> $Globals['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature]
> = 'pi_flexform';
> \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature,
> 'FILE:EXT:check_dns/Configuration/FlexForms/ff_check_dns.xml');
>
> /typo3conf/ext/check_dns/Configuration/Flexforms/ff_check_dns.xml
> <T3DataStructure>
>     <sheets>
>         <sDef>
>             <ROOT>
>                 <TCEforms>
>                     <sheetTitle>Test Bla Bla</sheetTitle>
>                 </TCEforms>
>                 <type>array</type>
>                 <el>
>                      <settings.header>                        <TCEforms>
>                             <label>xyz</label>
>                         <config>
>                             <type>input</type>
>                             <eval>trim</eval>
>                         </config>
>                         </TCEforms>
>                 </settings.header>            </el>        </ROOT>
>     </sDef>    </sheets> </T3DataStructure>
>

Not sure if something ruined the formatting, but if there are no child 
elements the closing tag must be on the same line as the opening tag.
All tags must start on their own line.

And the flexform parser/processor in 7 became a bit more "picky" 
compared to earlier releases. But the tags seem to be correct in this 
example.

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list