TYPO3未加载流体布局的Extbase后端模块打字脚本

TYPO3未加载流体布局的Extbase后端模块打字脚本,typo3,typoscript,extbase,typo3-6.2.x,typo3-extensions,Typo3,Typoscript,Extbase,Typo3 6.2.x,Typo3 Extensions,在TYPO3 CMS 6.2.17中,我使用Extension Builder创建了一个Extbase扩展,它有一个前端插件和一个后端模块。我建立了一个本地主机网站,有两个页面:id=1是一个标准页面;id=2是一个文件夹。标准页面具有站点的根打字脚本模板,该模板包括我的扩展名的静态文件 我在Web模块中激活了Extbase扩展。当我选择我的扩展名和文件夹页面(id=2)时,我看到默认控制器和操作中的填充列表显示;但显示器使用的是前端流体布局,而不是后端布局。我想要在“typo3 DoHeade

在TYPO3 CMS 6.2.17中,我使用Extension Builder创建了一个Extbase扩展,它有一个前端插件和一个后端模块。我建立了一个本地主机网站,有两个页面:id=1是一个标准页面;id=2是一个文件夹。标准页面具有站点的根打字脚本模板,该模板包括我的扩展名的静态文件

我在Web模块中激活了Extbase扩展。当我选择我的扩展名和文件夹页面(id=2)时,我看到默认控制器和操作中的填充列表显示;但显示器使用的是前端流体布局,而不是后端布局。我想要在“typo3 DoHeader functions”div类中为其Fluid actionMenu设置后端布局

我似乎无法获得显示器的后端流体布局。我选择了标准页面(按预期显示空列表),甚至选择了站点根页面(id=0)(也是空列表显示),但它们也都使用前端流体布局

我已经清除了安装工具中的所有缓存并清除了typo3temp/。我已在extension Manager中停用并重新激活了我的扩展。我已经尝试过中甚至中建议的解决方案。到目前为止,一切都不起作用。我甚至查看了该站点的安装工具“所有配置”设置,但没有看到任何我认为会影响后端显示问题的内容

代码直接来自ExtensionBuilder,但这里有一些摘录

ext_tables.php:

if (TYPO3_MODE === 'BE') {

    /**
     * Registers a Backend Module
     */
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
        'MyVendor.' . $_EXTKEY,
        'web',
        'myextbe',  // Submodule key
        '',                     // Position
        array(
            'Import' => 'list, show, new, create, edit, update, delete',
            'Pages' => 'list, show',
        ),
        array(
            'access' => 'user,group',
            'icon'   => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
            'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_myextbe.xlf',
        )
    );

}

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'My Ext');
myext\Configuration\TypoScript\constants.txt:

module.tx_myext_myextbe {
    view {
        # cat=module.tx_myext_myextbe/file; type=string; label=Path to template root (BE)
        templateRootPath = EXT:myext/Resources/Private/Backend/Templates/
        # cat=module.tx_myext_myextbe/file; type=string; label=Path to template partials (BE)
        partialRootPath = EXT:myext/Resources/Private/Backend/Partials/
        # cat=module.tx_myext_myextbe/file; type=string; label=Path to template layouts (BE)
        layoutRootPath = EXT:myext/Resources/Private/Backend/Layouts/
    }
    persistence {
        # cat=module.tx_myext_myextbe//a; type=string; label=Default storage PID
        storagePid =2
    }
}
myext\Configuration\TypoScript\setup.txt:

 # Module configuration
module.tx_myext_myextbe {
    persistence {
        storagePid = {$module.tx_myext_myextbe.persistence.storagePid}
    }
    view {
        templateRootPath = {$module.tx_myext_myextbe.view.templateRootPath}
        partialRootPath = {$module.tx_myext_myextbe.view.partialRootPath}
        layoutRootPath = {$module.tx_myext_myextbe.view.layoutRootPath}
    }
}

将所有
模块.tx\u myext\u myextbe
替换为
模块.tx\u myext
插件.tx\u myextfe
替换为
插件.tx\u myext

module.tx\u myext\u myextbe
在6.2.x中是无效的表示法-在结果中,Extbase找不到它,并尝试默认的模板路径,即前端路径

constants.txt

module.tx_myext {
    view {
        # cat=module.tx_myext/file; type=string; label=Path to template root (BE)
        templateRootPath = EXT:myext/Resources/Private/Backend/Templates/
        # cat=module.tx_myext/file; type=string; label=Path to template partials (BE)
        partialRootPath = EXT:myext/Resources/Private/Backend/Partials/
        # cat=module.tx_myext/file; type=string; label=Path to template layouts (BE)
        layoutRootPath = EXT:myext/Resources/Private/Backend/Layouts/
    }
    persistence {
        # cat=module.tx_myext//a; type=string; label=Default storage PID
        storagePid = 2
    }
}
module.tx_myext {
    persistence {
        storagePid = {$module.tx_myext.persistence.storagePid}
    }
    view {
        templateRootPath = {$module.tx_myext.view.templateRootPath}
        partialRootPath = {$module.tx_myext.view.partialRootPath}
        layoutRootPath = {$module.tx_myext.view.layoutRootPath}
    }
}
setup.txt

module.tx_myext {
    view {
        # cat=module.tx_myext/file; type=string; label=Path to template root (BE)
        templateRootPath = EXT:myext/Resources/Private/Backend/Templates/
        # cat=module.tx_myext/file; type=string; label=Path to template partials (BE)
        partialRootPath = EXT:myext/Resources/Private/Backend/Partials/
        # cat=module.tx_myext/file; type=string; label=Path to template layouts (BE)
        layoutRootPath = EXT:myext/Resources/Private/Backend/Layouts/
    }
    persistence {
        # cat=module.tx_myext//a; type=string; label=Default storage PID
        storagePid = 2
    }
}
module.tx_myext {
    persistence {
        storagePid = {$module.tx_myext.persistence.storagePid}
    }
    view {
        templateRootPath = {$module.tx_myext.view.templateRootPath}
        partialRootPath = {$module.tx_myext.view.partialRootPath}
        layoutRootPath = {$module.tx_myext.view.layoutRootPath}
    }
}
键入脚本对象浏览器

[module]
  [tx_myext]
   [view]
    [templateRootPath] = EXT:myext/Resources/Private/Backend/Templates/
    [partialRootPath] = EXT:myext/Resources/Private/Backend/Partials/
    [layoutRootPath] = EXT:myext/Resources/Private/Backend/Layouts/

将所有
模块.tx\u myext\u myextbe
替换为
模块.tx\u myext
插件.tx\u myextfe
替换为
插件.tx\u myext

module.tx\u myext\u myextbe
在6.2.x中是无效的表示法-在结果中,Extbase找不到它,并尝试默认的模板路径,即前端路径

constants.txt

module.tx_myext {
    view {
        # cat=module.tx_myext/file; type=string; label=Path to template root (BE)
        templateRootPath = EXT:myext/Resources/Private/Backend/Templates/
        # cat=module.tx_myext/file; type=string; label=Path to template partials (BE)
        partialRootPath = EXT:myext/Resources/Private/Backend/Partials/
        # cat=module.tx_myext/file; type=string; label=Path to template layouts (BE)
        layoutRootPath = EXT:myext/Resources/Private/Backend/Layouts/
    }
    persistence {
        # cat=module.tx_myext//a; type=string; label=Default storage PID
        storagePid = 2
    }
}
module.tx_myext {
    persistence {
        storagePid = {$module.tx_myext.persistence.storagePid}
    }
    view {
        templateRootPath = {$module.tx_myext.view.templateRootPath}
        partialRootPath = {$module.tx_myext.view.partialRootPath}
        layoutRootPath = {$module.tx_myext.view.layoutRootPath}
    }
}
setup.txt

module.tx_myext {
    view {
        # cat=module.tx_myext/file; type=string; label=Path to template root (BE)
        templateRootPath = EXT:myext/Resources/Private/Backend/Templates/
        # cat=module.tx_myext/file; type=string; label=Path to template partials (BE)
        partialRootPath = EXT:myext/Resources/Private/Backend/Partials/
        # cat=module.tx_myext/file; type=string; label=Path to template layouts (BE)
        layoutRootPath = EXT:myext/Resources/Private/Backend/Layouts/
    }
    persistence {
        # cat=module.tx_myext//a; type=string; label=Default storage PID
        storagePid = 2
    }
}
module.tx_myext {
    persistence {
        storagePid = {$module.tx_myext.persistence.storagePid}
    }
    view {
        templateRootPath = {$module.tx_myext.view.templateRootPath}
        partialRootPath = {$module.tx_myext.view.partialRootPath}
        layoutRootPath = {$module.tx_myext.view.layoutRootPath}
    }
}
键入脚本对象浏览器

[module]
  [tx_myext]
   [view]
    [templateRootPath] = EXT:myext/Resources/Private/Backend/Templates/
    [partialRootPath] = EXT:myext/Resources/Private/Backend/Partials/
    [layoutRootPath] = EXT:myext/Resources/Private/Backend/Layouts/

这成功了!我信任Extension Builder的打字脚本构建,甚至没有想到检查它的打字脚本符号是否为
plugin.tx\u myext
module.tx\u myext
。两天前那个“实验”让我沮丧了两天;)很高兴它对您有所帮助。在键入3.6.2之后的所有项目中,请切换到
TemplateRootPath
等(注意复数“s”)。虽然可能支持单数路径格式,但完全不推荐使用。示例适用于6.2,但不适用于6.2之后的版本!这成功了!我信任Extension Builder的打字脚本构建,甚至没有想到检查它的打字脚本符号是否为
plugin.tx\u myext
module.tx\u myext
。两天前那个“实验”让我沮丧了两天;)很高兴它对您有所帮助。在键入3.6.2之后的所有项目中,请切换到
TemplateRootPath
等(注意复数“s”)。虽然可能支持单数路径格式,但完全不推荐使用。示例适用于6.2,但不适用于6.2之后的版本!