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

Basti Baumann donillo at gmail.com
Fri Apr 25 11:09:47 CEST 2008


Francois Suter schrieb:
> 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
> 

Hello Frederic,

now it works with my standard website url (and three languages).
But now I have a problem with a second domain.
Our spanish website is reachable via an extra domain (domain.es).
On this site all the news urls are in english and not in spanish:
http://www.domain.es/news/news-details/article/84/changing-gears-quickly-high-performance-transmission-production/

If I use my standard domain it works:
http://www.domain.de/es/novedades/novedades-detalles/article/84/cambio-de-marchas-mas-rapidamente-produccion-de-la-transmision-de-alto-rendimiento/

Best regards
Basti


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