Zum Inhalt springen

EXT mit FF und TCA

Erstellt am 11. März 2010 · Noch keine Antworten

Tags: Frage

kontaktschmied ·

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.

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');