[TYPO3-dev] Extending tt_news

Tomiţă MILITARU tomita.militaru at gmail.com
Thu Dec 9 09:58:20 CET 2010


Hello,

I have an extension with which I want to change the fe_group of a news
entry, in the BE for each news I want to have in the form a select. I've did
the same thing for tt_content, tx_dam & pages and all went fine, but at
tt_news no changes appear in the form. This is how I tried to do it in the
ext_tables.php:

$tempColumns = Array (
    'fe_group' => Array (
    'label' => 'Tuple:',
    'config' => Array (
        'type' => 'select',
        'size' => '5',
        'maxitems' => '200',
        'minitems' => '0',
        'items' => Array (
            Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login',
-1),
            Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
            Array('LLL:EXT:user_tuple/locallang_db.xml:groupTuple_div',
'--div--')
        ),
        'selectedListStyle' => 'width:400px',
        'itemListStyle' => 'width:350px',
        'exclusiveKeys' => '0,-1,-2',
        'wizards' => Array(
        '_PADDING' => 1,
        '_VERTICAL' => 1,
        'popup' => Array(
            'type' => 'popup',
            'title' => 'LLL:EXT:user_tuple/locallang_db.php:wizard.title',
            'icon' => 'add.gif',
             'params' => Array(
            'pid' => $feGroupStoragePid,
            ),
            'script' => 'EXT:user_tuple/class.sc_wizard_fegroup.php',
            'JSopenParams' =>
'height=400,width=600,status=0,menubar=0,scrollbars=1',
        )
        ),
        'itemsProcFunc' => 'tx_tupleitems->tupleElement',
    )
    )
);

t3lib_div::loadTCA("tt_news");
t3lib_extMgm::addTCAcolumns("tt_news",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes ("tt_news", "fe_group");

But no changes appear. Any ideas / sugestions?

Thank you!

-- 
Engr. Tomiţă MILITARU
Board Member SbLUG
Web Developer
Tel. +40741064681




More information about the TYPO3-dev mailing list