[TYPO3-UG Dutch] Flexform deel XIV :-)

Rens Admiraal typo3 at ambitiondesign.nl
Tue Feb 6 12:35:34 CET 2007


Allen,

Sorry dat ik jullie wederom lastig val :-) Maar toch nog een vraagje
over FlexForm... Ik heb de tuto doorlopen op
http://wiki.typo3.org/index.php/Extension_Development%2C_using_Flexforms

Ik heb dus nu een FlexForm die bij een plugin te gebruiken is. Ik wil
echter het FlexForm gebruiken in het formulier bij Insert Records voor
de tabel tx_uFlexTest_Test. Weet iemand hoe ik dat kan doen? Ik heb in
de code van tt_news gekeken, maar daar kan ik het niet vinden. tt_news
biedt echter wel flexforms aan bij het toevoegen van nieuws.

Ik heb hier de code uit ext_tables.php die ervoor zorgt dat het flexform
gebruikt wordt bij de plugin. Als bijlag heb ik de hele test plugin
toegevoegd, weet alleen niet of die aankomt in de lijst...

Code:
<?php
if (!defined ('TYPO3_MODE'))     die ('Access denied.');

if (TYPO3_MODE=="BE")    {
       
   
t3lib_extMgm::addModule("tools","txuFlexTestM1","top",t3lib_extMgm::extPath($_EXTKEY)."mod1/");
}

$TCA["tx_uFlexTest_Test"] = Array (
    "ctrl" => Array (
        'title' =>
'LLL:EXT:uFlexTest/locallang_db.xml:tx_uFlexTest_Test',       
        'label' => 'uid',   
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        "default_sortby" => "ORDER BY crdate",   
        "delete" => "deleted",   
        "enablecolumns" => Array (       
            "disabled" => "hidden",   
            "starttime" => "starttime",   
            "endtime" => "endtime",
        ),
        "dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY)."tca.php",
        "iconfile" =>
t3lib_extMgm::extRelPath($_EXTKEY)."icon_tx_uFlexTest_Test.gif",
    ),
    "feInterface" => Array (
        "fe_admin_fieldList" => "hidden, starttime, endtime, tekst, title",
    )
);

t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform';

t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1',
'FILE:EXT:uFlexTest/flexform_ds_pi1.xml'); 
t3lib_extMgm::addPlugin(Array('LLL:EXT:/locallang_db.xml:tt_content.list_type_pi1',
$_EXTKEY.'_pi1'),'list_type');
t3lib_extMgm::addToInsertRecords('tx_uFlex_Test', 'tt_content', 'tekst,
title');

?>


More information about the TYPO3-UG-dutch mailing list