Templates 如何将自己的HTML/FLUID模板用于TYPO3扩展(来自Repsository)
在我以前的TYPO3扩展“dmmjobcontrol”中,我通过TypoScript使用自己的HTML模板Templates 如何将自己的HTML/FLUID模板用于TYPO3扩展(来自Repsository),templates,plugins,typo3,fluid,extbase,Templates,Plugins,Typo3,Fluid,Extbase,在我以前的TYPO3扩展“dmmjobcontrol”中,我通过TypoScript使用自己的HTML模板 plugin.tx_dmmjobcontrol_pi1.template.search = fileadmin/search.tmpl 现在,新的Extbase扩展“Jobfair”()将流体模板与ViewHelpers、Partials等一起使用 如何在前端使用自己的HTML代码段?我可以阅读流体模板,我可以在/jobfair/Resources/Templates/Job/List.
plugin.tx_dmmjobcontrol_pi1.template.search = fileadmin/search.tmpl
现在,新的Extbase扩展“Jobfair”()将流体模板与ViewHelpers、Partials等一起使用
如何在前端使用自己的HTML代码段?我可以阅读流体模板,我可以在/jobfair/Resources/Templates/Job/List.HTML中将我的HTML写入其中。但在扩展后。更新我的数据将丢失。我怎样才能解决这个问题?我不能只用CSS来设计我的前端,这是不可能的。我需要在我的模板几个HTML标记
如何在Extbase扩展中使用自己的模板
谢谢您的帮助。解决方案
在打字稿设置中:
plugin.tx_jobfair {
view {
templateRootPaths {
100 = fileadmin/templates/static/jobfair/Resources/Private/Templates/
#100 = EXT:jobfair/Resources/Private/Templates/
}
partialRootPaths {
100 = fileadmin/templates/static/jobfair/Resources/Private/Partials/
#100 = EXT:jobfair/Resources/Private/Partials/
}
layoutRootPaths {
100 = fileadmin/templates/static/jobfair/Resources/Private/Layouts/
#100 = EXT:jobfair/Resources/Private/Layouts/
}
}
}
之前,请将资源文件夹从Extenstion复制到/fileadmin文件夹中,并在模板中进行更改