[TYPO3-english] realurl in Unicode with _DOMAINS config

David ARNOULT - Edition & Internet Operations d.arnoult at topsolid.com
Fri Jun 3 17:03:12 CEST 2011


One work around before solving the bug is to exclude localization for this language by adding in pagePath array:
'languageExceptionUids' => '7',

Talking to myself, but inspired to share ;-)

David

-----Message d'origine-----
De : typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] De la part de David ARNOULT - Edition & Internet Operations
Envoyé : vendredi 3 juin 2011 16:11
À : 'TYPO3 English'
Objet : Re: [TYPO3-english] realurl in Unicode with _DOMAINS config

Hi,

To complete my previous message, error log says:
1 	03-06-11 16:07 (0 min.) 	%E4%BA%A7%E5%93%81/%E5%B7%A5%E4%B8%9A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88.htm 	Segment "工业解决方案" was not a keyword for a postVarSet as expected on page with id=28. 	http://cn.topsolid.com/ 	03-06-11 16:0

It seems that it is same bug as on the bug tracker.

David 

-----Message d'origine-----
De : typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] De la part de David ARNOULT - Edition & Internet Operations
Envoyé : vendredi 3 juin 2011 15:30
À : 'TYPO3 English'
Objet : [TYPO3-english] realurl in Unicode with _DOMAINS config

Hi,

I am running realurl 1.11.1 (great ext, thanks Dimitry!) with TYPO3
4.3.11/Apache2.2/MySQL5/PHP5.2.9 on a Windows 2003 server. It seems that
with _DOMAINS feature, 'enableAllUnicodeLetters' does not work completely.
No problem for the other languages, Greek included.

Live web site here in Chinese simplified: http://cn.topsolid.com 

Example of problem
http://cn.topsolid.com/%E4%BA%A7%E5%93%81/%E5%B7%A5%E4%B8%9A%E8%A7%A3%E5%86%
B3%E6%96%B9%E6%A1%88.htm

I can see that when using prevars without _DOMAINS, it seems to work here on
that site:
http://www.leica-microsystems.com/jp/%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9/%E
3%83%97%E3%83%AC%E3%82%B9%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9/

Is this bug related?
http://bugs.typo3.org/view.php?id=16899

Everything is in UTF-8 (Apache, Mysql, TYPO3). I have seen that
config.locale_all has a great influence on the problem. I have tested
several values defined here
(http://msdn.microsoft.com/en-us/library/39cwe7zf%28vs.71%29.aspx)  without
any results.

My config:
TS:
config.linkVars = L
config.uniqueLinkVars = 1

config.metaCharset = utf-8
config.renderCharset = utf-8
config.additionalHeaders = Content-Type:text/html;charset=utf-8
config.xhtml_cleaning = all

config.sys_language_mode = content_fallback
config.sys_language_overlay = hideNonTranslated
...
[globalVar = GP:L = 7]
config.language = cn
config.locale_all = chinese-simplified
config.sys_language_uid = 7
config.baseURL = http://cn.topsolid.com/
config.htmlTag_langKey = zh-CN
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 7
...


realurl:
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'_DEFAULT' => array(
    'init' =>   array (
      'enableCHashCache' => true,
	  'useCHashCache' => '0',
      'appendMissingSlash' =>  'ifNotFile',
      'adminJumpToBackend' => true,
      'enableUrlDecodeCache' => true,
      'enableUrlEncodeCache' => true,
      'emptyUrlReturnValue' => '/',
	'enableAllUnicodeLetters' => true,
      //'postVarSet_failureMode' => 'redirect_goodUpperDir',
      'doNotRawUrlEncodeParameterNames' => 1,
      'respectSimulateStaticURLs' => 0,
    ),

'preVars' => array(

    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'en' => 0,
            'fr' => 1,
			'de' => 2,
			'it' => 3,
			'es' => 4,
			'gr' => 5,
			'br' => 6,
			'cn' => 7,
			'pl' => 8,
			'hu' => 9,
        ),
	'valueDefault' => 'en',
	'noMatch' => 'bypass',
    ),
),

'postVarSets' => array(
			'_DEFAULT' => array(
				
				// news archive parameters
				'archive' => array(
					array(
						'GETvar' =>
'tx_ttnews[year]' ,
						),
					array(
						'GETvar' =>
'tx_ttnews[month]' ,
						'valueMap' => array(
							'january' => '01',
							'february' => '02',
							'march' => '03',
							'april' => '04',
							'may' => '05',
							'june' => '06',
							'july' => '07',
							'august' => '08',
							'september' => '09',
							'october' => '10',
							'november' => '11',
							'december' => '12',
							)
						),
					),
				// news pagebrowser
				'browse' => array(
					array(
						'GETvar' =>
'tx_ttnews[pointer]',
						),
					),
				// news categories
				'category' => array (
					array(
						'GETvar' =>
'tx_ttnews[cat]',
						),
					),
				// news articles and searchwords
				
				'article' => array(
					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',
							'autoUpdate' => 1,
							'expireDays' => 1,
							'useUniqueCache' =>
1,
	
'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
							),
						),
					),
				),
				
				),
			),

    'pagePath' =>   array (
      'type' => 'user',
      'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
      'spaceCharacter' => '-',
      'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,title',
      'languageGetVar' => 'L',
      'rootpage_id' => 2,
      'expireDays' => 1,
	  'disablePathCache' => true,

      //'excludePageIds'    => null,
      //'autoUpdatePathCache' => true,
    ),
    
    'fileName' =>   array (
      'defaultToHTMLsuffixOnPrev' =>  '.htm',
      'acceptHTMLsuffix' => 0,
    ),
  ),

  '_DOMAINS' => array(
        'encode' => array(
            array(
                'GETvar' => 'L',
                'value' => '0',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.com',
            ),
            array(
                'GETvar' => 'L',
                'value' => '1',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.fr',
            ),
			array(
                'GETvar' => 'L',
                'value' => '2',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.de',
            ),
			array(
                'GETvar' => 'L',
                'value' => '3',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.it',
            ),
			array(
                'GETvar' => 'L',
                'value' => '4',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.es',
            ),
			array(
                'GETvar' => 'L',
                'value' => '5',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.gr',
            ),
			array(
                'GETvar' => 'L',
                'value' => '6',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://br.topsolid.com',
            ),
			array(
                'GETvar' => 'L',
                'value' => '7',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://cn.topsolid.com',
            ),
			array(
                'GETvar' => 'L',
                'value' => '8',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://pl.topsolid.com',
            ),
			array(
                'GETvar' => 'L',
                'value' => '9',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://hu.topsolid.com',
            ),
        ),
        'decode' => array(
            'www.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '0',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
            'www.topsolid.fr' => array(
                'GETvars' => array(
                    'L' => '1',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'www.topsolid.de' => array(
                'GETvars' => array(
                    'L' => '2',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'www.topsolid.it' => array(
                'GETvars' => array(
                    'L' => '3',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'www.topsolid.es' => array(
                'GETvars' => array(
                    'L' => '4',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'www.topsolid.gr' => array(
                'GETvars' => array(
                    'L' => '5',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'br.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '6',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'cn.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '7',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'pl.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '8',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
			'hu.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '9',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
        ),
),
);
?>

Many thanks if someone has an idea.

Regards

David 



_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list