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
TYPO3扩展中的模板_Typo3_Typo3 7.x - Fatal编程技术网

TYPO3扩展中的模板

TYPO3扩展中的模板,typo3,typo3-7.x,Typo3,Typo3 7.x,我使用TYPO3 v7.6.2! 创建自定义扩展名。 控制器是否可以选择要生成的模板?在默认设置之后,选择name\u template=name\u action。谢谢,我找到了问题的答案。 为了对同一扩展使用不同的模板,您只需要在需要的页面上调整输入脚本路径到资源的方式 常数: plugin.tx_plugin { view { templateRootPath = fileadmin/tx_plugin/you_custom_template partialRootPa

我使用TYPO3 v7.6.2! 创建自定义扩展名。
控制器是否可以选择要生成的模板?在默认设置之后,选择name\u template=name\u action。

谢谢,我找到了问题的答案。 为了对同一扩展使用不同的模板,您只需要在需要的页面上调整输入脚本路径到资源的方式

常数:

plugin.tx_plugin {
  view {
    templateRootPath = fileadmin/tx_plugin/you_custom_template
    partialRootPath = fileadmin/tx_plugin/you_custom_partial
    layoutRootPath = fileadmin/tx_plugin/you_custom_layout
  }
}
和设置:

plugin.tx_plugin  {
  view {
    templateRootPaths.0 = {$plugin.tx_plugin.view.templateRootPath}
    partialRootPaths.0 = {$plugin.tx_plugin.view.partialRootPath}
    layoutRootPaths.0 = {$plugin.tx_plugin.view.layoutRootPath}
  }
}

啊。。。你到底有什么问题?!“name\u template=name\u action”表示您希望对您的操作使用不同的视图?或者,如果你能描述更多关于你的问题,那么其他人可以帮助你。你能将你的解决方案标记为正确答案吗,谢谢!