[TYPO3-english] Problem with Realurl und tt_news

pharno ml at pharno.ch
Fri Oct 8 08:18:55 CEST 2010


Philipp Holdener schrieb:
> Am 08.10.10 00:10, schrieb David ARNOULT - Edition & Internet Operations:
> 
>> Hello Philip,
>>
>> I confirm: on my side all realurl releases superior to 1.8.1 does not 
>> work
>> on my 4.3.7 with same realurl_conf.php.
>> Something happened!
>>
>> I am desperating in localizing tt_news single view URL, it simply does 
>> not
>> work, only default language is used.
>> Adding these four lines in my postvar lookUpTable array did not help.
>> 'languageGetVar' =>  'L',
>> 'languageExceptionUids' =>  '',
>> 'languageField' =>  'sys_language_uid',
>> 'transOrigPointerField' =>  'l18n_parent',
>>
>> Could you send us your realurl config file to have a look and maybe 
>> find a
>> solution ?
>>
> 
> 
> Hi David
> 
> This is my realurl_conf that works:
> 
> <?php
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
>     'init' => array(
>         'enableCHashCache' => 1,
>         'appendMissingSlash' =>    'ifNotFile',
>         'enableUrlDecodeCache' => 1,
>         'enableUrlEncodeCache' => 1,
>         //'emptyUrlReturnValue' => '/'
>     ),
>     'preVars' => array(
>         array(
>             'GETvar' => 'no_cache',
>             'valueMap' => array(
>                 'nc' => 1
>             ),
>             'noMatch' => 'bypass'
>         ),
>     /*    array(
>             'GETvar' => 'L',
>             'valueMap' => array(
>                 'de' => 0,
>                 'en' => 1,
>                 'fr' => 2,
>                 'es' => 3,
>                 'it' => 4
>             ),
>             'valueDefault' => 'de'
>         ),
>     */
>     ),
>     'pagePath' => array(
>         'type' => 'user',
>         'userFunc' => 
> 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
>         'spaceCharacter' => '-',
>         'languageGetVar' => 'L',
>         'rootpage_id' => 1,
>         'segTitleFieldList' => 'tx_realurl_pathsegment,alias,title',
>         'expireDays' => 1095
>     ),
>     'fixedPostVars' => array(
> // ID of the news singlepage
>         51 => array(
>             array(
>                 'GETvar' => 'tx_ttnews[tt_news]',
>                 'lookUpTable' => array(
>                     'table' => 'tt_news',
>                     'id_field' => 'uid',
>                     'alias_field' => 'title',
>                     //'addWhereClause' => ' AND deleted != 1',
>                     'useUniqueCache' => 1,
>                     //'autoUpdate' => 1,
>                     'useUniqueCache_conf' => array(
>                         'strtolower' => 1,
>                         'spaceCharacter' => '-'
>                     )
>                 )
>             )
>         ),
>     ),
>     'postVarSets' => array(
>         '_DEFAULT' => array(
>             /*'article' => array(
>                 array(
>                     'GETvar' => 'tx_ttnews[tt_news]',
>                     'lookUpTable' => array(
>                         'table' => 'tt_news',
>                         'id_field' => 'uid',
>                         'alias_field' => 'title',
>                         //'addWhereClause' => ' AND deleted != 1',
>                         'useUniqueCache' => 1,
>                         //'autoUpdate' => 1,
>                         'useUniqueCache_conf' => array(
>                             'strtolower' => 1,
>                             'spaceCharacter' => '-'
>                         )
>                     )
>                 ),
>             ),*/
>         ),
>     ),
>     'fileName' => array(
>         'index' => array(
>             'index.html' => array(
>                 'keyValues' => array(
>                     'type' => 0
>                 )
>             ),
>             'print.html' => array(
>                 'keyValues' => array(
>                     'type' => 98
>                 )
>             ),
>             '.txt' => array(
>                 'keyValues' => array(
>                     'type' => 99
>                 )
>             ),
>             'sitemap.xml' => array(
>                 'keyValues' => array(
>                     'type' => 776
>                 )
>             )
>         ),
>         'defaultToHTMLsuffixOnPrev' => 1,
>         'acceptHTMLsuffix' => 1
>     )
> );
> ?>
> 
> Greetings
> Philipp
Hi

Dont know which Philipp you adressed, but here is mine: 
http://nopaste.info/28e9db6a55.html

result is : 
http://pfadi-rinau.wmcweb03.wmc.ch/no_cache/news/news-einzelansicht/artikel/2010/09/14/asdl/18.html

which produces the error: Segment "18" was not a keyword for a 
postVarSet as expected!

I just cant see the error, slowly I begin to think its a bug...

pharno

(btw: could you please speak of me as pharno or Philipp Arnosti? 
thanks(its not that I would hate it when you call me by my first name, 
its just to make things clear))


More information about the TYPO3-english mailing list