EXT mit FF und TCA
| Autor | Nachricht |
|---|---|
|
Verfasst am: 11. 03. 2010 [15:22]
|
|
|
kontaktschmied
Dabei seit: 20.01.2009
Beiträge: 81
|
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<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />penflashchart/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<img src="typo3conf/ext/mm_forum//res/smilies/icon_eek.gif" alt="icon_eek.gif" />penflashchart/locallang_db.php:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type'); |



