[TYPO3-ttnews] Multilanguage news: titles in URLs

Tomas Mrozek mail at cascaval.com
Tue Sep 26 20:05:05 CEST 2006


I have a site with 2 languages (one tree) that has news titles in the
URL thanks to RealURL. Everything works fine but news titles are not
translated in the URLs of the second language.

This seems to be obvious since tt_news renders list of news with uids of
the original articles.

Is there a way to get the news titles in the URLs translated?

Thank you in advance for any hint!


Tomas Mrozek



TS configuration:
----------------
plugin.tt_news {
  sys_language_mode = strict
  dontUseBackPid = 1
  useHRDates = 1
  useHRDatesSingle = 1
  useHRDatesSingleWithoutDay = 1
}

localconf.php:
-------------
'article' => array(
  array(
    'GETvar' => 'tx_ttnews[year]',
  ),
  array(
    'GETvar' => 'tx_ttnews[month]',
  ),
  array(
    'GETvar' => 'tx_ttnews[tt_news]',
    'lookUpTable' => array(
      'table' => 'tt_news',
      'id_field' => 'uid',
      'alias_field' => 'title',
      'addWhereClause' => ' AND NOT deleted',
      'useUniqueCache' => 1,
      'useUniqueCache_conf' => array(
         'strtolower' => 1,
         'spaceCharacter' => '-',
      ),
    ),
  ),
),

Enviroment:
----------
TYPO3: 4.0.2
tt_news: 2.4.0 (using the "new" localization feature)
RealURL: 1.1.1



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