[TYPO3-german] Bestehende NICHT-extbase Tabelle erweitern und nutzen

Nicole Cordes typo3 at cordes.co
Tue Mar 8 18:59:29 CET 2016


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


More information about the TYPO3-german mailing list