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

Franz Holzinger franz at ttproducts.de
Thu Dec 22 20:20:24 CET 2011


Hello,

there is a compatibility break with TYPO3 4.6 and the system extension 
"CSS Styled Content".

The manual says in chapter 'Insert Plugin (List)':


tt_content.list {
	10 = < lib.stdheader

	20 = CASE
	20.key.field = list_type
	20 {
		# LIST element references (NOT copy of objects!)
		# THESE are OLD plugins. Modern plugins registers themselves 
automatically!
		3 = CASE
		3.key.field = layout
		3.0 = < plugin.tt_guest

		4 = CASE
		4.key.field = layout
		4.0 = < plugin.tt_board_list
		4.1 = < plugin.tt_board_tree

		2 = CASE
		2.key.field = layout
		2.0 = < plugin.tt_board_tree

		5 = CASE
		5.key.field = layout
		5.0 = < plugin.tt_products

		7 = CASE
		7.key.field = layout
		7.0 = < plugin.tt_calender

		8 = CASE
		8.key.field = layout
		8.0 = < plugin.tt_rating

		9 = CASE
		9.key.field = layout
		9.0 = < plugin.tt_news

		11 = CASE
		11.key.field = layout
		11.0 = < plugin.tipafriend

		20 = CASE
		20.key.field = layout
		20.0 = < plugin.feadmin.fe_users

		21 = CASE
		21.key.field = layout
		21.0 = < plugin.feadmin.dmailsubscription
	}

	20.stdWrap {
		editIcons = tt_content: list_type, layout, select_key, pages [recursive]
		editIcons.iconTitle.data = 
LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin

		prefixComment = 2 | Plugin inserted:
	}
}



However when I debug this then the result is a little different.

tt_content.list {
	10 = < lib.stdheader

	20 = CASE
	20.key.field = list_type
	20 {
		tt_products_pi1 = < plugin.tx_ttproducts_pi1
	}
}

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');


Which function must be used to register a FE plugin for TYPO3 4.6?


- Franz







More information about the TYPO3-dev mailing list