[TYPO3] tt_news, multilanguage & realurl

Trine Buhl trine.buhl at mail.dk
Tue Apr 8 22:58:19 CEST 2008


Hi,

I will try to be a bit more specific. We implemented the solution from 
Francois, and got this result:

The news article in the default language version is this URL:
http://www.domain.com/news/news-view/article/default-version.html?tx_ttnews%5BbackPid%5D=2&cHash=68e0b71047

The "more"- link from the translated version of the latest news view is:
http://www.domain.com/dk/nyheder/nyhed/article/translated-version.html?tx_ttnews%5BbackPid%5D=2&cHash=406f7219ea 
which generates a 404 - page not found.

Instead the translated version it to be found on this URL:
http://www.domain.com/dk/news/news-view/article/default-version.html?tx_ttnews%5BbackPid%5D=2&cHash=68e0b71047 
where the only difference is the language selector.

What generates difference between the more link and the actual URL?

Regards, Trine

"Brian Bendtsen" <bb at bellevuevej.dk> skrev i meddelelsen 
news:mailman.1.1207642749.3236.typo3-english at lists.netfielders.de...
> Francois Suter skrev:
>> Hi,
>>
>>> Im working on this job with Trine who asked the question. The problem is
>>> that it works fine in the default(english) language, so its probably not
>>> because of the code you posted.
>>
>> Your configuration is incomplete as far as language is concerned. Here's 
>> my setup for tt_news in a multi-language site:
>>
>> 'article' => array(
>>     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
>>
>> François Suter
>>
> Hi
>
> That fixed the url but the result is still an 404 error in the danish 
> version.
>
> /Brian 



More information about the TYPO3-english mailing list