[TYPO3-dev] IRRE localisation

Jacco van der Post jacco at id-internetservices.com
Wed Mar 7 20:06:49 CET 2012


Hi,

I am strugling with tx_ttnewsirre to make it multi language. This 
extensions adds irre records to a news article.

I changed ext_tables.php into


$irreFieldConfiguration = array(
	'tx_ttnewsirre_content' => array (
		'exclude' => 1,
		'label' => 'LLL:EXT:ttnews_irre/locallang_db.xml:tx_ttnewsirre_content',
		'config' => array (
			'type' => 'inline',
                         'languageMode' => 'inherit',
			'foreign_table' => 'tt_content',
			'foreign_field' => 'irre_parentid',
			'foreign_table_field' => 'irre_parenttable',
			'maxitems' => 100,
			'appearance' => array(
				'useSortable' => 1,
				'showSynchronizationLink' => 1,
				'showAllLocalizationLink' => 1,
				'showPossibleLocalizationRecords' => 1,
				'showRemovedLocalizationRecords' => 0,
				'expandSingle' => 1,
				'enabledControls' => array (
					'dragdrop' => 1,
                                     'sort'  => 1,
                                     'hide'  => 1,
                                     'delete'  => 1,
                                      'localize' => 1,
				),
			),
			'behaviour' => array(
				'localizationMode' => 'select',
                                 'mode' => 'select',
				'localizeChildrenAtParentLocalization' => 1,
			),
		)
	)
);


This seems to work ok, when a new tt_news article is made a translated 
content element is generated. However when showing the news_article in 
another language the default language of the content element is still shown.



So added in the query the sys_language :

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                 'uid', 'tt_content', 'irre_parentid=' . $row['uid'] .
                 ' AND irre_parenttable=\'tt_news\''  . 'AND 
tt_content.sys_language_uid = ' . $GLOBALS['TSFE']->sys_language_uid .
                 $cObj->enableFields('tt_content'), '', 'sorting'
         );

Now on the default language the content element is shown but on the 
other language no content element is shown.

1. Any clues how to solve this?
2. Unhide button does not seem to work, this must be done in the content 
element?

thx

Jacco



More information about the TYPO3-dev mailing list