Typo3 扩展无法覆盖默认(回退)TemplateRootPath/PartialRootPath/LayoutRootPath

Typo3 扩展无法覆盖默认(回退)TemplateRootPath/PartialRootPath/LayoutRootPath,typo3,typo3-8.x,Typo3,Typo3 8.x,我有两个分机: 扩展名“base_templates”包含很多流体部分 扩展名“specific_templates”使用“base_templates”中的部分并覆盖其中一些部分 因此,液体应按以下顺序使用: 1.检查“特定_模板”是否具有搜索的部分 2.检查“基本模板”是否有部分搜索 所以“基本模板”是“特定模板”的回退 为了实现此行为,我配置了“特定_模板”的partialRootPath: 由于partialrootpath.0始终设置为EXT:specific_templates/Re

我有两个分机:

  • 扩展名“base_templates”包含很多流体部分
  • 扩展名“specific_templates”使用“base_templates”中的部分并覆盖其中一些部分
  • 因此,液体应按以下顺序使用: 1.检查“特定_模板”是否具有搜索的部分 2.检查“基本模板”是否有部分搜索

    所以“基本模板”是“特定模板”的回退

    为了实现此行为,我配置了“特定_模板”的partialRootPath:

    由于partialrootpath.0始终设置为EXT:specific_templates/Resources/Private/Partials/它们总是被中的Partials覆盖

    通缉结果:

    array (
      0 => 'BASE_PATH/www/typo3conf/ext/base_templates/Resources/Private/Partials/',
      1 => 'BASE_PATH/www/typo3conf/ext/specific_templates/Resources/Private/Partials/',  
    )
    

    对于TYPO3 7.x,它可以正常工作,而在更新到8.x之后,它就不能正常工作了

    从Typo3 v7迁移到v8时,我也遇到了同样的问题

    我必须按如下方式更改TS设置:

    plugin.tx_specific_templates {
        view {
           partialRootPaths >
           partialRootPaths {
                0 = EXT:base_templates/Resources/Private/Partials/
                1 = EXT:specific_templates/Resources/Private/Partials/
           }
        }
    }
    
    plugin.tx_specific_templates {
        view {
           partialRootPaths >
           partialRootPaths {
                0 = EXT:base_templates/Resources/Private/Partials/
                1 = EXT:specific_templates/Resources/Private/Partials/
           }
        }
    }