---
title: "EXT mit FF und TCA"
url: "https://www.typo3.net/d/97437-ext-mit-ff-und-tca"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage"]
created: "2010-03-11"
last_reply: "2010-03-11"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# EXT mit FF und TCA

Extensions › Entwicklung · 0 Antworten · gestartet 2010-03-11

## Eröffnungsbeitrag

**kontaktschmied** · 2010-03-11 · [Beitrag #1](https://www.typo3.net/d/97437-ext-mit-ff-und-tca/1)

Hallo,

ich möchte für tt_content ein Plugin schreiben. Die grundsätzliche Konfiguration soll über Flexform erfolgen.
Allerdings soll über der FF-Konf noch ein TCA-Element erscheinen, das einen grundsätzlichen Parameter abfragt.
Es ist also ein Mix aus TCA und FF und so etwa wie in dem der Photomontage sollte es funzen:
<http://familientagebuch.de/rainer/img/2010/ofcff.png>

Hier mein bisheriger Versuch, der allerdigs mein TCA-Feld in den rechte Hauptreiter (Access) unterbringt.

```php
include_once(t3lib_extMgm::extPath($_EXTKEY).'class.tx_addFieldsToFlexForm.php');
$tempColumns = array (
    'tx_openflashchart_charttype' => array (        
        'exclude' => 0,        
        'label' => 'LLL:EXT:openflashchart/locallang_db.xml:tt_content.tx_openflashchart_charttype',        
        'config' => array (
            'type' => 'select',
            'items' => array ( ___ITEMARRRAY___),
            'size' => 1,    
            'maxitems' => 1,
        )
    ),
);


t3lib_div::loadTCA('tt_content');

t3lib_extMgm::addTCAcolumns('tt_content',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('tt_content','tx_openflashchart_charttype;;;;1-1-1','','before:pi_flexform');


$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key,pages';

$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1','FILE:EXT:'.$_EXTKEY.'/flexform_ds.xml');
t3lib_extMgm::addPlugin(array('LLL:EXT:openflashchart/locallang_db.php:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');
```

---

Quelle: „EXT mit FF und TCA“, typo3.net, https://www.typo3.net/d/97437-ext-mit-ff-und-tca
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
