You are my hero!!!!

Now I get this error Plugin-valg "Data Structure ERROR: No ['ROOT']['el'] element found in flex form definition", but that is the flexform-xml that is wrong.

Thank you for your time.


Jeppe

Birgit skrev den 17.01.2019 11:35:
Hi Jeppe,

https://api.typo3.org/typo3cms/8/html/class_t_y_p_o3_1_1_c_m_s_1_1_extbase_1_1_utility_1_1_extension_utility.html#a815dc76c1a5695b5e8949c5b71eaca8a

static registerPlugin   (       
        $extensionName,
        $pluginName,
        $pluginTitle,
        $pluginIconPathAndFilename = null
)

Parameters
string  $extensionName  The extension name (in UpperCamelCase) or the
extension key (in lower_underscore)
string  $pluginName     must be a unique id for your plugin in
UpperCamelCase (the string length of the extension key added to the
length of the plugin name should be less than 32!)
string  $pluginTitle    is a speaking title of the plugin that will be
displayed in the drop down menu in the backend
string  $pluginIconPathAndFilename      is a path to an icon file (relative
to TYPO3_mainDir), that will be displayed in the drop down menu in the
backend (optional)



https://api.typo3.org/typo3cms/8/html/class_t_y_p_o3_1_1_c_m_s_1_1_core_1_1_utility_1_1_extension_management_utility.html#a8eaac10f3a230441af50e3a2d096260e

static addPiFlexFormValue       (       
        $piKeyToMatch,
        $value,
        $CTypeToMatch = 'list'
)

Parameters
string  $piKeyToMatch   Plugin key as used in the list_type field. Use
the asterisk * to match all list_type values.
string  $value  Either a reference to a flex-form XML file (eg.
"FILE:EXT:newloginbox/flexform_ds.xml") or the XML directly.
string  $CTypeToMatch   Value of tt_content.CType (Content Type) to
match. The default is "list" which corresponds to the "Insert Plugin"
content element. Use the asterisk * to match all CType values.


Do the following:

Install your extension, put your plugin on a page.
Look for the uid of this contentElement (yourPluginContentElementUid)

Check the fields in your DB:

SELECT list_type, CType
FROM tt_content
WHERE uid = yourPluginContentElementUid

$piKeyToMatch = tt_content.list_type
$CTypeToMatch = tt_content.CType


Every time you have changed your parameters, clear all caches in the
install tool, clear typo3temp/.



Best regards
Birgit


Am 17.01.2019 um 11:15 schrieb je...@donslund.net:

Something is still wrong

I can select "BEF Medlemsliste 3" as a plugin in TYPO3, but no flexform is showing.

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
        'Originalen.BEFMembers',
        'BEF Medlemsliste 2',
        'BEF Medlemsliste 3'
);

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['befmembers_befmedlemsliste'] = 'select_key,pages,recursive';
// ['brfeedback_feedback‘] = extensionname_pluginname

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['befmembers_befmedlemsliste'] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('befmembers_befmedlemsliste', 'FILE:EXT:befmembers/Configuration/FlexForms/flexform.xml');



Jeppe



Birgit skrev den 17.01.2019 09:55:
Hi Jeppe,
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
        'Originalen.BefMembers',
        'Medlemsliste',
        'Medlemsliste'
);
try: ['befmembers_medlemsliste‘],
clear all caches and and typo3temp/
Clear all flexform configurations in your_extension/ext_tables.php and
your_extension/ext_localconf.php
Best regards Birgit
Am 17.01.2019 um 09:03 schrieb je...@donslund.net:
Hi Birgit
I think I need a little more help.
I guess I am getting confused about what is exntension key, exentsion name and plugin name, so maybe I am not using the right names in the code.
Can I find it somewhere?
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
        'Originalen.BefMembers',
        'Medlemsliste',
        'Medlemsliste'
);
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['befmembers_befmedlemsliste'] = 'select_key,pages,recursive';
// ['brfeedback_feedback‘] = extensionname_pluginname
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['befmembers_befmedlemsliste'] = 'pi_flexform'; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('befmembers_befmedlemsliste', 'FILE:EXT:befmembers/Configuration/FlexForms/flexform.xml');
Jeppe
Birgit skrev den 16.01.2019 16:59:
Hi Jeppe,
this is a sample configuration for TYPO3 8.7.x:
File:
EXT:br_feedback/Configuration/TCA/Overrides/tt_content.php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
  'BR.BrFeedback',
  'Feedback',
  'Feedback'
);
  /**
   * Include Flexform
   */
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['brfeedback_feedback']
= 'select_key,pages,recursive‘;  // ['brfeedback_feedback‘] =
extensionname_pluginname
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['brfeedback_feedback']
= 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('brfeedback_feedback',
'FILE:EXT:br_feedback/Configuration/FlexForms/flexform_feedback_list.xml‘);
Best regards
Birgit
Am 16.01.2019 um 13:56 schrieb je...@donslund.net:
Unfortunately no. I have a copy of the flexform.xml in boht places.
Regards
Jeppe
David Bruchmann skrev den 16.01.2019 13:04:
Is it possible that the file-path is just wrong?
Instead of this:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature,
'FILE:EXT:'.$_EXTKEY.'/Configuration/flexform.xml');
it could be like this:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature,
'FILE:EXT:'.$_EXTKEY.'/Configuration/FlexForms/flexform.xml');
On Wed, Jan 16, 2019 at 6:00 PM <typo3-english-requ...@lists.typo3.org>
wrote:
Send TYPO3-english mailing list submissions to
     typo3-english@lists.typo3.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
or, via email, send a message with subject or body 'help' to
     typo3-english-requ...@lists.typo3.org
You can reach the person managing the list at
     typo3-english-ow...@lists.typo3.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of TYPO3-english digest..."
Today's Topics:
1. TYPO3 8.7 and Flexform (je...@donslund.net)
----------------------------------------------------------------------
Message: 1
Date: Tue, 15 Jan 2019 13:40:22 +0100
From: je...@donslund.net
Subject: [TYPO3-english] TYPO3 8.7 and Flexform
To: Typo3 english <typo3-english@lists.typo3.org>
Message-ID:
     <mailman.7802.1547556043.712.typo3-engl...@lists.typo3.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed
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
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
End of TYPO3-english Digest, Vol 184, Issue 2
*********************************************
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to