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

Franz Holzinger franz at ttproducts.de
Fri Dec 23 10:30:57 CET 2011


Hello Helmut,

thank you for the answer.

On 22/12/11 21:12, Helmut Hummel wrote:
> 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"

This is no acceptable solution. A user shall not be forced to make a SQL 
update of all tt_content records which have the field 'list_type' set to 
'5'. He also might want to downgrade again at a later moment and would 
have to undo his changes to the table tt_content.

> 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

This does not work. The setup must be inserted as this:

tt_content.list.20.5 = < plugin.tt_products


Regards,

Franz




More information about the TYPO3-dev mailing list