Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Migration typo39.5:RealURL-简单GetVars的迁移_Migration_Typo3_Typo3 9.x_Realurl - Fatal编程技术网

Migration typo39.5:RealURL-简单GetVars的迁移

Migration typo39.5:RealURL-简单GetVars的迁移,migration,typo3,typo3-9.x,realurl,Migration,Typo3,Typo3 9.x,Realurl,我在TYPO 8.7安装中的realURL配置中有以下部分: 'locationConfiguration' => array( array( 'GETvar' => 'continent', 'valueMap' => array( 'europe' => 1, 'europa'=>1, 'americas' => 2, '

我在TYPO 8.7安装中的realURL配置中有以下部分:

'locationConfiguration' => array(
    array(
        'GETvar' => 'continent',
        'valueMap' => array(
            'europe' => 1,
            'europa'=>1,
            'americas' => 2,
            'africa' => 4,
            'afrika' => 4,
            'amerika' => 2,
            'asia' => 3,
            'asien' => 3,
            ),
        'valueDefault' => '',
        'noMatch' => 'bypass',
        ),
'134'=>'locationConfiguration'

这些是我想要翻译的简单GetVars。 参数“Continental”是可选的,因此最终url也应该在没有此参数的情况下工作。 作为TYPO3 9.5中的新手,我想知道这是否适用于Enhancer类型的“简单增强器”,以及我是否可以将其与“方面”结合起来

注意:它不是一个带有Controller->Action等的extbase插件,而是一个老式插件

有人能发布一些符合上述配置的示例吗


非常感谢

我终于发现了它的工作原理。同一路径段中还包含另一个变量,但这对解决方案不重要。我使用了RouteEnhancer类型的“extbase”,尽管我的插件不是extbase插件,并且省略了带有控制器/动作的部分(没有控制器/动作它也可以工作):


这可以通过方面映射和区域设置实现。请试着拿出一些代码来显示一些努力。你看到了吗?恭喜你!你可以用一个简单的增强器。
  Locations:
type: Extbase
limitToPages:
  - 134
routes:
  - routePath: '/{src}'
  - routePath: '/{continent}'
  - routePath: '/{continent}/{src}'
defaults:
  src: ''
  continent: ''
aspects:
  src:
    type: StaticValueMapper
    map:
      bsc: bsc
      bpg: bpg
      big: big
      bpr: bpr
  continent:
    type: StaticValueMapper
    map:
       europe: 1
       americas: 2
       asia: 3
       africa: 4
    localeMap:
      - locale: 'de_.*'
        map:
          europa: 1
          amerika: 2
          asien: 3
          afrika: 4