TYPO3 8.7 and Flexform

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

TYPO3 8.7 and Flexform

Jeppe Donslund
Hi

I can seem to find a working tutorial on how to use Flexform in TYPO3
8.7.

I have tried with this:
$extensionName =
\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY);
$frontendpluginName = 'BEF Members';
$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/flexform.xml');

But the flexfrom doesn't show up.


Can anyone help me?


Regards
Jeppe Donslund
_______________________________________________
TYPO3-english mailing list
[hidden email]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Reply | Threaded
Open this post in threaded view
|

Re: TYPO3 8.7 and Flexform

Christian Tauscher-4
Am 15.01.2019 um 13:40 schrieb [hidden email]:
> Hi
>
> I can seem to find a working tutorial on how to use Flexform in TYPO3 8.7.
> ...

I stuck at the same point but found the solution:

In TCA/Overrides/tx_my_domainmodel_mytable.php:

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['my_pluigin']
= 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
    // plugin signature: <extension key without underscores> '_' <plugin
name in lowercase>
    'my_plugin',
    // Flexform configuration schema file
    'FILE:EXT:my/Configuration/FlexForms/flexform_show.xml'
);


Yepp?


Christian.
_______________________________________________
TYPO3-english mailing list
[hidden email]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Reply | Threaded
Open this post in threaded view
|

Re: TYPO3 8.7 and Flexform

Christian Platt
Hi Christian

your are right. In 8.7 also the extensionbuilder creates in Configuration/TCA/Overrides/…
from my test Extension:

  $pluginSignature = str_replace('_', '', 'test') . '_fwplugin';
  $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:phtest/Configuration/FlexForms/flexform_fwplugin.xml');



Christian




> Am 13.02.2020 um 21:54 schrieb Christian Tauscher <[hidden email]>:
>
> Am 15.01.2019 um 13:40 schrieb [hidden email]:
>> Hi
>>
>> I can seem to find a working tutorial on how to use Flexform in TYPO3 8.7.
>> ...
>
> I stuck at the same point but found the solution:
>
> In TCA/Overrides/tx_my_domainmodel_mytable.php:
>
> $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['my_pluigin']
> = 'pi_flexform';
> \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
>    // plugin signature: <extension key without underscores> '_' <plugin
> name in lowercase>
>    'my_plugin',
>    // Flexform configuration schema file
>    'FILE:EXT:my/Configuration/FlexForms/flexform_show.xml'
> );
>
>
> Yepp?
>
>
> Christian.
> _______________________________________________
> TYPO3-english mailing list
> [hidden email]
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

_______________________________________________
TYPO3-english mailing list
[hidden email]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english