[TYPO3-german] RealURL

Nico Trebbin nico at nicomedia.de
Wed May 21 10:30:19 CEST 2008


Hallo,

 

ich habe mal wieder ein Problem mit RealURL.

 

Ist es irgendwie möglich den Pfad Namen um einige Ebenen zu verkürzen?

 

http://typo3.lsr.ei.tum.de/people/scientific-staff/detail-page/showstaff/alt
hoff/84/?no_cache=1

 

auf http://typo3.lsr.ei.tum.de/people/althoff wäre mir am liebsten.

 

Weder excludePageIds noch redirects_regex liefern bei mir das gewünschte
Ergebnis.

Und falls noch jemand eine Idee für das „?no_cache=1“ am Ende hat, wäre ich
auch sehr dankbar.

Ohne RealURL sieht das Ganze übrigens folgendermaßen aus:

http://typo3.lsr.ei.tum.de/index.php?id=85
<http://typo3.lsr.ei.tum.de/index.php?id=85&no_cache=1&tx_bzdstaffdirectory_
pi1%5bshowUid%5d=3&tx_bzdstaffdirectory_pi1%5bbackPid%5d=84>
&no_cache=1&tx_bzdstaffdirectory_pi1[showUid]=3&tx_bzdstaffdirectory_pi1[bac
kPid]=84

 

Meine RealURL Config:

 

<?php

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (

  '_DEFAULT' => 

  array (

    'init' => 

    array (

      'enableCHashCache' => true,

      'appendMissingSlash' => 'ifNotFile',

      'adminJumpToBackend' => true,

      'enableUrlDecodeCache' => true,

      'enableUrlEncodeCache' => true,

      'emptyUrlReturnValue' => '/',

         

        ),

   

   'redirects_regex' => array(

          '^detail-page/(.*)' => 'http://typo3.lsr.ei.tum.de/people/\1', 

                          ),

                          

    'pagePath' => 

    array (

      'type' => 'user',

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

      'spaceCharacter' => '-',

      'languageGetVar' => 'L',

              'rootpage_id' => '1',

    ),

    'fileName' => 

    array (

      'defaultToHTMLsuffixOnPrev' => 0,

      'acceptHTMLsuffix' => 1,

      'index' => 

      array (

        'print' => 

        array (

          'keyValues' => 

          array (

            'type' => 98,

          ),

        ),

      ),

    ),

    'preVars' => 

    array (

      0 => 

      array (

        'GETvar' => 'L',

        'valueMap' => 

        array (

          1 => '1',

        ),

        'noMatch' => 'bypass',

      ),

              array (

              'GetVAR' => 'no_cache',

              'valueMap' => array(

              'no_cache' => 1

              ),

              'noMatch' => 'bypass',

              ),

    ),

            'postVarSets' => array(

            '_DEFAULT' => array(

            'showstaff' => array(

            array(

            'GETvar' => 'tx_bzdstaffdirectory_pi1[showUid]' ,

            'lookUpTable' => array(

            'table' => 'tx_bzdstaffdirectory_persons',

            'id_field' => 'uid',

            'alias_field' => 'last_name',

            'addWhereClause' => ' AND NOT deleted',

            'useUniqueCache' => 1,

            'useUniqueCache_conf' => array(

            'strtolower' => 1,

            'spaceCharacter' => '-',

            ),

            ),             

            ),

            array(

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

            ),

            ),

            'news' => array(

               array(

                  'GETvar' => 'tx_mininews[mode]',

                          'valueMap' => array(

                             'list' => 1,

                                    'details' => 2,

                                    )

                                    ),

                                    array(

                                    'GETvar' => 'tx_mininews_pi1[showUid]',

                                    ),

            ),

            ),

            ),

            ),

);

?>



More information about the TYPO3-german mailing list