【发布时间】:2017-01-12 15:40:22
【问题描述】:
我想形成文件路径。 在“常量”字段中:
const.siteName = site
templates = fileadmin/templates/{$const.siteName}/
当我查看打字稿对象浏览器时:
[siteName] = site
[templates] = fileadmin/templates/{$const.siteName}/
有没有可能做到这一点:
[templates] = fileadmin/templates/site/
使用const.siteName?
如果是,怎么做?
================================================ ============================
编辑:
接下来我要做的是:
在我的扩展配置中
const.siteName = foo
const.templates = fileadmin/templates/($const.siteName)/
const.path.extensions = ($const.templates)/ext/
我在打字稿模板中包含我的扩展名。在我的扩展设置中,我包括这样的插件设置:
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:foo/Configuration/TypoScript/Plugin/formhandler.ts">
在 Configuration/TypoScript/Plugin/formhandler.ts:
plugin.Tx_Formhandler {
/* snip */
settings.predef.member {
templateFile.value = {$const.path.extensions}formhandler/member/step-1.html // doesn't work
//templateFile.value = fileadmin/templates/foo/ext/formhandler/member/step-1.html // works
}
/* snip */
}
【问题讨论】:
标签: typo3 typoscript