[TYPO3-dev] how to register FE plugins with TYPO3 4.6?

Helmut Hummel helmut.hummel at typo3.org
Thu Dec 22 21:12:25 CET 2011


Hi,

On 22.12.11 20:20, Franz Holzinger wrote:

> So the CASE won't work in TYPO3 4.6.
> This is to add the plugin for TYPO3<  4.6:
> t3lib_extMgm::addPlugin(Array('LLL:EXT:'.TT_PRODUCTS_EXTkey.'/locallang_db.xml:tt_content.list_type_pi1','5'),'list_type');


in ext_tables.php:
t3lib_extMgm::addPlugin(Array('LLL:EXT:'.TT_PRODUCTS_EXTkey.'/locallang_db.xml:tt_content.list_type_pi1',TT_PRODUCTS_EXTkey.'_pi1'),'list_type');

in ext_localconf.php:
t3lib_extMgm::addPItoST43(TT_PRODUCTS_EXTkey,'pi1/class.tx_ttproducts_pi1.php','_pi1','list_type',1);


This works in 4.6 and below.

But be aware that if you change that, all tt_content elements need to be 
updated so that the list_type field contains "tt_products_pi1" and not "5"

Alternative would be to skip the addPItoST43 call, leave the addPlugin 
call like it is and just add the following to your extension TypoScript:


tt_content.list.20.5 = < plugin.tx_ttproducts_pi1


Kind regards,
Helmut

-- 
Helmut Hummel
TYPO3 Security Team Leader, TYPO3 v4 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list