Ah o.k., das war mir entgangen, dass man 'underscoredToUpperCamelCase' auch über t3lib_div ansprechen kann.

Wie würde man denn jetzt die Programmierung so machen, dass sie versionsunabhängig ist? Das folgende geht doch nicht, oder?

if( Typo3-Version < 6 ) {
    $extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
} else {
$extensionName = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY));
}

Das nimmt mir PHP doch übel, oder?

Gruß
Stefan



Am 30.06.2014 17:34, schrieb Andreas Freund:
Hallo Stefan,

habe das hier folgendermaßen umgesetzt:

$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_pi1';

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature]
= 'layout,recursive,select_key,pages';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature]
= 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY .
'/Configuration/FlexForms/flexform_ds_pi1.xml');

Vorausgesetzt PluginName ist pi1...hilft dir das Beispiel weiter?

Gruß,
Andi



2014-06-30 17:11 GMT+02:00 Stefan Padberg <p...@bergische-webschmiede.de>:

Hallo,

ich habe das für Typo3 4.7. so abgewandelt:

$extensionName = strtolower($_EXTKEY);

$pluginName = strtolower('List');
$pluginSignature = $extensionName.'_'.$pluginName;
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature]
= 'layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature]
= 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:'.$_EXTKEY .
'/Configuration/FlexForms/flexform_'.$pluginName.'.xml');

Aber ich bekomme kein Flexform zu sehen. Habe ich noch etwas vergessen?
Funktioniert 't3lib_extMgm::addPiFlexFormValue' auch mit Extbase?

Beste Grüße
Stefan Padberg


Am 30.06.2014 16:09, schrieb Stefan Padberg:

  Um ein Flexform für ein Plugin zu registrieren, schreibt man unter
Typo3/Extbase 6.1:

$extensionName =
strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::
underscoredToUpperCamelCase($_EXTKEY));


$pluginName = strtolower('List');
$pluginSignature = $extensionName.'_'.$pluginName;
$TCA['tt_content']['types']['list']['subtypes_excludelist']
[$pluginSignature]
= 'layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature]
=
'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($
pluginSignature,
'FILE:EXT:'.$_EXTKEY .
'/Configuration/FlexForms/flexform_'.$pluginName.'.xml');

Wie muss man das für Typo3 4.7 abwandeln? Ich finde das nicht mehr im
Netz.

Gruß
Stefan Padberg

---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus
Schutz ist aktiv.
http://www.avast.com



---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus
Schutz ist aktiv.
http://www.avast.com

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



---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz 
ist aktiv.
http://www.avast.com

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

Antwort per Email an