[TYPO3-german] Setup Problem von RealUrl Ext

Fabian König Fabian.Koenig at gmx.net
Mon Nov 20 09:39:36 CET 2006


Hi.
Ich kopier dir einfach mal alles hier rein, was ich bei mir verwende 
(ich hab es mal etwas fuer deine Seite angepasst):

===TS:root-template:Constants===
baseURL = http://www.ancient-village.com
===TS:root-template:Constants===


===TS:root-template:Setup===
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1

config.baseURL = {$baseURL}
[globalString = ENV:HTTP_HOST=ancient-village.com]
	config.baseURL = {$baseURL}
[global]
===TS:root-template:Setup===



===PHP:localconf.php===
...
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(

'init' => array(

'enableCHashCache' => 1

),

'preVars' => array(

array(

'GETvar' => 'no_cache',

'valueMap' => array(

'no_cache' => 1,

),

'noMatch' => 'bypass',

),

array(

'GETvar' => 'L',

'valueMap' => array(

'en' => '1',

),

'noMatch' => 'bypass',

),

),

'fileName' => array (

'defaultToHTMLsuffixOnPrev' => true,

'index' => array(

'backend.php' => array(

'keyValues' => array (

'type' => 100,

)

),

'print' => array(

'keyValues' => array(

'type' => 98,

)

),

),

),

'postVarSets' => array(

'_DEFAULT' => array (

'article' => array(

array(

'GETvar' => 'tx_ttnews[tt_news]',

),

array(

'GETvar' => 'tx_ttnews[backPid]',

),

),

'category' => array(

array(

'GETvar' => 'tx_ttnews[cat]',

),

),

'neste' => array(

array(

'GETvar' => 'tx_ttnews[pointer]',

),

),

),

),

'pagePath' => array(

'type' => 'user',

'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',

'spaceCharacter' => '-',

'languageGetVar' => 'L',

'expireDays' => 3

),

);
...
===PHP:localconf.php===


Also bei mir klappt das alles prima..
Einfach mal alles komplett kopieren und einfuegen.
Bei soviel code wuerde ein "vergleich" zwischen deinem und meinem code 
viel zu lange dauern, also einfach rein damit. :P

mfg
Fabian



P.S.:
Wenn es dann immernoch nicht funktioniert,
dann loesch einfach komplett realurl vom server und installier es neu...
(Vielleicht klappt es ja dann..)



Sebastian Scholz schrieb:
>> die '10' ist die ID der Seite! Was könnte denn da noch eingetragen
>> werden ...??? hmmm: wie wär's mit einem Alias!!!!
>>
>> Trag bei deinen Seiten einen Alias ein, dann klappt das auch mit
>> realurl ...
>>
>> Hint: defaultToHTMLsuffixOnPrev macht sich auch ganz gut !!!
>>
>>
>>
> 
> 
> Also das mit dem Alias ist nicht ganz das was ich brauche, weil der Link
> www.url.com/index.php?id=10 => www.url.com/home.html sein soll. Bisher 
> hatte
> ich es nur bis www.url.com/10/ geschafft und mit alias wäre das dann
> www.url.com/home ABER über dieses Stadium bin ich bereits hinweg.
> 
> www.url.com/home.html geht :) Aber bei manchen Menüpunkten die Untermenüs
> haben, fällt das system plötzlich wieder auf die alten manieren zurück und
> meint dann doch wieder die ID in Form von www.url.com/10/ zu nehmen. Woran
> kann das liegen ?
> 
> Hier mal das richtige Projekt : http://www.ancient-village.com/home.html
> 
> Hier ist das was ich in der localconf.php benutzte :
> 
> 
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
>    'init' => array(
>        'enableCHashCache' => 1,
>        'enableUrlDecodeCache' => 1,
>        'enableUrlEncodeHash' => 1,
> //        'postVarSet_failureMode' => 'redirect_goodUpperDir',
>        ),
>    'rewrite' => array(
>        ),
>    'preVars' => array(
>        /*
>        array(
>            'GETvar' => 'L',
>            'valueMap' => array(
>                'de' => '0',
>                'de' => '1',
>                'valueDefault' => 'de',
>                ),
>            ),
>        */
>        ),
>    'pagePath' => array(
>        'type' => 'user',
>        'userFunc' =>
> 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
>        'spaceCharacter' => '-',
>        'languageGetVar' => 'L',
>        'expireDays' => 3
>        ),
>    'fileName' => array (
>        'defaultToHTMLsuffixOnPrev' => 1,
>        'index' => array(
>            'page.html' => array(
>                'keyValues' => array (
>                    'type' => 1,
>                        ),
>                ),
>            ),
>        'print.html' => array(
>            'keyValues' => array (
>                'type' => 98,
>                ),
>            ),
>        ),
>    'fixedPostVarSets' => array(
>        ),
>    'postVarSets' => array(
>        '_DEFAULT' => array(
>            //archive
>            'period' => array (
>                array (
>                    'condPrevValue' => -1,
>                    'GETvar' => 'tx_ttnews[pS]',
>                    //'valueMap => array()
>                    ),
>                array (
>                    'GETvar' => 'tx_ttnews[pL]',
>                    //'valueMap => array()
>                    ),
> 
>                array (
>                    'GETvar' => 'tx_ttnews[arc]',
>                    'valueMap' => array(
>                        'non-archived' => -1,
>                        ),
>                    ),
>                  ),
> 
>            'browse' => array (
>                array (
>                    'GETvar' => 'tx_ttnews[pointer]',
>                    ),
>                ),
>              'select' => array (
>                array (
>                    'GETvar' => 'tx_ttnews[cat]',
>                    'lookUpTable' => array (
>                        'table'        =>    'tt_news_cat',
>                        'id_field'    =>    'uid',
>                        'alias_field'    =>    'title',
>                        'addWhereClause'=>    'AND NOT deleted',
>                        'useUniqueCache'=>    1,
>                        'useUniqueCache_conf'    =>    array (
>                            'strtolower'        =>    1,
>                            'spaceCharacter'    =>    '-',
>                            ),
>                        ),
>                    ),
>                ),
>             'article' => array(
>                array (
>                    'GETvar' => 'tx_ttnews[backPid]',
>                    // 'valueMap => array(
>                    // ),
>                    ),
>                array (
>                    'GETvar' => 'tx_ttnews[tt_news]',
>                    'lookUpTable' => array (
>                        'table'        =>    'tt_news',
>                        'id_field'    =>    'uid',
>                        'alias_field'    =>    'title',
>                        'maxLength'    =>    12,
>                        'addWhereClause'=>    'AND NOT deleted',
>                        'useUniqueCache'=>    1,
>                        'useUniqueCache_conf'    =>    array (
>                            'strtolower'        =>    1,
>                            'spaceCharacter'    =>    '-',
>                            ),
>                        ),
>                    ),
>                ),
>            ),
>        ),
>    );
> 
> Jemand ne idee was ich falsch mache ??



More information about the TYPO3-german mailing list