[TYPO3-ttnews] tt_news and realurl - only standard language title in single view url

Francois Suter fsuter at cobweb.ch
Thu Apr 24 13:46:29 CEST 2008


Hi,

> How can I configure that in the new translated to german the url is in 
> german with the german title like this:
> http://www.domain.de/de/aktuelles/news-detail/article/84/leistung-satt-im-getriebebau/ 

You need to add language conditions to your lookUpTable. Here's my config:

array(
	'GETvar' => 'tx_ttnews[tt_news]',
	'lookUpTable' => array(
		'table' => 'tt_news',
		'id_field' => 'uid',
		'alias_field' => 'title',
		'addWhereClause' => ' AND NOT deleted',
		'languageGetVar' => 'L',
		'languageExceptionUids' => '',
		'languageField' => 'sys_language_uid',
		'transOrigPointerField' => 'l18n_parent',
		'useUniqueCache' => 1,
		'useUniqueCache_conf' => array(
			'strtolower' => 1,
			'spaceCharacter' => '-',
			),
		),
	),

HTH

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-project-tt-news mailing list