Hallo Deus,

Am 08.03.2016 um 14:16 schrieb Deus:
Hallo nochmal.
Ich habe es hinbekommen.
Das TCA-File muss so aussehen:

<?php
if (!defined ('TYPO3_MODE')) {
     die ('Access denied.');
}

$GLOBALS['TCA']['campaigns'] = array(
     'ctrl' => $GLOBALS['TCA']['campaigns']['ctrl'],
     'interface' => array(
     ),
     'types' => array(
     ),
     'palettes' => array(
     ),
     'columns' => array(
     ),
);

## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is
overwritten with the defaults of the extension builder
$GLOBALS['TCA']['campaigns']['columns'] = array(
);
?>

Der Extension-Builder erzeugt hier leider immer noch falsche Ausgaben. Richtige wäre eine Datei campaigns.php mit folgendem Inhalt:

```
<?php
    if (!defined ('TYPO3_MODE')) {
        die ('Access denied.');
    }

    return array(
        'ctrl' => array(),
        'interface' => array(),
        'types' => array(),
        'palettes' => array(),
        'columns' => array(),
    );
```

-> TCA-Dateien sollen die Konfiguration als array zurückgeben, nicht global im TCA registrieren.


Best regards,
Nicole
        
--
Nicole Cordes
TYPO3 CMS Core Team Member
TYPO3 Security Team Co-Leader

TYPO3 .... inspiring people to share!
Get involved: typo3.org
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an