真正的URL语言无法正常工作,并以不同的(未设置)语言显示文本

时间:2016-11-02 12:47:49

标签: typo3 realurl

我们上次更新了我们的realURL工具,并且某处存在错误。该页面的默认语言为德语,英语为第二语言。 现在的问题是,URL-Tool在某种程度上适用于某些页面,但并非适用于所有页面。 例如(非真实页面)

www.test.de/de/home is working fine
www.test.de/de/it is showing some text in the header in spanish
all www.test.de/en/ all sites are working fine

这是我的realURL配置:

 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array ( 
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile,redirect',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
            'emptyUrlReturnValue' => true,
            'autoUpdatePathCache' => '1',
            'respectSimulateStaticURLs' => '1'
        ),
        'redirects' => array (
            'emba' => 'http://www.wiso.uni-koeln.de/en/business-school/executive-mba/?utm_source=print&utm_medium=anzeige&utm_campaign=handelsblatt'
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (

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

            ),            


            '2' => array (
                'GETvar' => 'lang',
                'valueMap' => array (
                    'de' => 'de',
                    'en' => 'en',
                ),
               'noMatch' => 'bypass',
            ),
            '3' =>array(
                    'GETvar' => 'type',
                    'valueMap' => array(
                       'powermail_cond' => '3132',
                    ),
                    'noMatch' => 'bypass',
               ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'segTitleFieldList' => 'tx_realurl_pathsegment,nav_title,title',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '3',
            'firstHitPathCache' => '1'
        ),
        'fixedPostVars' => array(
                'newsDetailConfiguration' => array(
                        array(
                                'GETvar' => 'tx_news_pi1[action]',
                                'valueMap' => array(
                                        'detail' => '',
                                ),
                                'noMatch' => 'bypass'
                        ),
                        array(
                                'GETvar' => 'tx_news_pi1[controller]',
                                'valueMap' => array(
                                        'News' => '',
                                ),
                                'noMatch' => 'bypass'
                        ),
                        array(
                                'GETvar' => 'tx_news_pi1[news]',
                                'lookUpTable' => array(
                                        'table' => 'tx_news_domain_model_news',
                                        'id_field' => 'uid',
                                        'alias_field' => 'title',
                                        'addWhereClause' => ' AND NOT deleted',
                                        'useUniqueCache' => 1,
                                        'useUniqueCache_conf' => array(
                                                'strtolower' => 1,
                                                'spaceCharacter' => '-'
                                        ),
                                        'languageGetVar' => 'L',
                                        'languageExceptionUids' => '',
                                        'languageField' => 'sys_language_uid',
                                        'transOrigPointerField' => 'l10n_parent',
                                        'autoUpdate' => 1,
                                        'expireDays' => 180,
                                )
                        )
                )

以下是来自typoscript模板设置的一些代码

page.headerData.90 >
page.headerData.90 = HMENU
page.headerData.90 {
special = language
special.value =  0,1
1 = TMENU
1                      {
NO = 1
NO                         {
stdWrap.cObject = TEXT
stdWrap.cObject               {
value = de || en
                              }

任何帮助都会非常苛刻!

0 个答案:

没有答案