[TYPO3-english] RealURL and tt_news: categories are not translated SOLVED!

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Tue Jan 21 16:27:32 CET 2014


Hello,

Finally found out that the query for cats was not localizing correctly, 
should be:
...
'cats' => array (
	array(
		'GETvar' => 'tx_ttnews[cat]',
		'lookUpTable' => array(
			'table' => 'tt_news_cat',
			'id_field' => 'uid',
			'alias_field' => 'title',
			'languageGetVar' => 'L',
			'languageField' => 'sys_language_uid',
			'addWhereClause' => ' AND NOT deleted',
			'useUniqueCache' => 1,
			'useUniqueCache_conf' => array(
			'strtolower' => 1,
			'spaceCharacter' => '-',
			'encodeTitle_userProc' => 'user_realurlEncTitle->process',
			),
		),
	),
),
...

I missed the part:
  	'languageField' => 'sys_language_uid',
	'addWhereClause' => ' AND NOT deleted',
..in the array.

Now it works, hopes it helps someone else.

Regards,
Bert


On 20-01-14 12:54, Bert Hiddink [BENDOO e-work solutions] wrote:
> Hello!
>
> I am having a hard time getting the tt-news-categories translated with
> REALURL...I am using 3 languages (NL,EN and ES)
>
>
> Used this snippet:
> http://typo3.org/documentation/snippets/sd/251/
>
> Other parts of the URL are translated correctly, for example, under ES I
> get:
> http://www.test.nl/es/portafolio/kategorie/commercieel/
>
> "kategorie/commercieel/" is not translated...
>
> Any ideas what I am doing wrong/missing?
>
> Thanks in advance!
>
> Regards,
> -brt
>
>
>
> ...
>      'postVarSets' => array(
>
>          '_DEFAULT' => array(
>              //archive
>              'period' => array (
>                  array (
>                      'condPrevValue' => -1,
>                      'GETvar' => 'tx_ttnews[pS]',
>                      //'valueMap => array()
>                  ),
>                  array (
>                      'GETvar' => 'tx_ttnews[pL]',
>                      //'valueMap => array()
>                  ),
>                     array (
>                     'GETvar' => 'tx_ttnews[arc]',
>                     'valueMap' => array(
>                          'non-archived' => -1,
>                          ),
>                        ),
>              ),
>              'browse' => array (
>                  array (
>                  'GETvar' => 'tx_ttnews[pointer]',
>                ),
>              ),
>              'cats' => array (
>                  array (
>                      'GETvar' => 'tx_ttnews[cat]',
>                      'lookUpTable' => array (
>                          'table' => 'tt_news_cat',
>                          'id_field' => 'uid',
>                          'alias_field' => 'title',
>                          'addWhereClause'=> 'AND NOT deleted',
>                          'useUniqueCache'=> 1,
>                          'useUniqueCache_conf' => array (
>                              'strtolower' => 1,
>                              'spaceCharacter' => '-',
>                              'encodeTitle_userProc' =>
> 'user_realurlEncTitle->process',
>                          ),
>                      ),
>                  ),
>              ),
>              'article' => array(
>                  array (
>                      'GETvar' => 'tx_ttnews[backPid]',
>                      // 'valueMap => array(
>                      // ),
>                  ),
>                  array (
>                      'GETvar' => 'tx_ttnews[tt_news]',
>                      'lookUpTable' => array (
>                          'table' => 'tt_news',
>                          'id_field' => 'uid',
>                          'alias_field' => 'title',
>                          'maxLength' => 12,
>                          'addWhereClause'=> 'AND NOT deleted',
>                          'useUniqueCache'=> 1,
>                          'useUniqueCache_conf' => array (
>                              'strtolower' => 1,
>                              'spaceCharacter' => '-',
>                          ),
>                      ),
>                  ),
>              ),
>          ),
>
>      ),
>
>



More information about the TYPO3-english mailing list