[TYPO3] tt_news, multilanguage & realurl

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Apr 7 17:32:52 CEST 2008


Trine Buhl wrote:
> Hi,
> 
> I've got a problem with tt_news, multilanguage and realurl.
> 
> The link to single news view for translated news items dosn't work:
> 
> http://domaine.com//dk/nyheder/nyhed/artikel/new-corporate-identity.html?tx_ttnews%5BbackPid%5D=2&cHash=406f7219ea 

"Does not work" is not a description of the problem. Impossible to help.

> Switching off realurl it comes up with a valid link:
> 
> http://domaine.com/index.php?id=4&L=1&tx_ttnews[tt_news]=2&tx_ttnews[backPid]=2&cHash=406f7219ea 

> Localconf for realurl look like this:

<skip>

>                // news articles and searchwords
>                'artikel' => array(
>                    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' => '-',
>                                ),
>                            ),
>                        ),
>                    array(
>                        'GETvar' => 'tx_ttnews[swords]',
>                        ),
>                    ),
>                ),

Do you understand what is configured above? It says that you must have both title and search words in URL. If you do not have search words, URL will not match.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list