Zum Inhalt springen

reaURL Problem: Links immer in Defaultsprache

Erstellt am 5. März 2008 · 1 Antwort · letzte Antwort am 24. September 2008

Tags: RealURL, URLs & Routing, Frage

eisstern ·

Hallo,
wie der Titel schon sagt, habe ich mit realURL das Problem, dass beim Besuch der englischen Seite (id=1) jede Link-URL auf deutsch erscheint. Bsp:
Default
Produkte: www.domain.de/produkte

Englisch
Products: www.domain.com/produkte

Der inahlt wird zwar auch auf englisch dargestellt, aber die URL tut so als sei sie Default. Allerdings funktioniert der direkte Seitenaufruf über die URL www.domain.com/products einwandfrei.

Es fehlt also wohl nur an der Einstellung, damit realURL auch die Text der gegebenen Sprache verwendet.

Hat jemand einen Tipp?

Hier meine Conf:

<?php
/**
* RealURL start
*/
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(

'init' => array(
    'enableCHashCache' => 1,
//    'respectSimulateStaticURLs' => 'FALSE',
    'appendMissingSlash' => 'ifNotFile',
    'enableUrlDecodeCache' => 0,
    'enableUrlEncodeCache' => 0,
    'postVarSet_failureMode' => 'redirect_goodUpperDir'
),  // init end


'redirects' => array(),


'pagePath' => array(
    'type' => 'user',
    'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    'spaceCharacter' => '-',
    'languageGetVar' => 'L',
    'expireDays' => 3,
    'rootpage_id' => 2,
),  // pagePath end


'preVars' => array(

// no_cache
    array(
        'GETvar' => 'no_cache',
        'valueMap' => array(
            'nc' => '1',
        ),
        'noMatch' => 'bypass',
    ),

// Sprache (L)
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'de' => '0',
            'en' => '1',
        ),
        'valueDefault' => '',
        'noMatch' => 'bypass',
    ),

// type
    array(
        'GETvar' => 'type',
        'valueMap' => array(
            'print_version' => '98',
        ),
        'noMatch' => 'bypass',
    ),
),  // preVars end


'fixedPostVars' => array(),


'postVarSets' => array(

    '_DEFAULT' => array(

// tt_news
        'article' => 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[backPid]',
            ),
        ),  // article end

        'category' => array(
            array(
                'GETvar' => 'tx_ttnews[cat]',
            ),
        ),  // category end

        'page' => array(
            array(
                'GETvar' => 'tx_ttnews[pointer]',
            ),
        ),


    ),
),  // postVarSets end


'fileName' => array(),  // fileName end

);

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';

/**
* RealURL end
*/
?>