Constant Editor Revert按钮会删除整个条目吗?

问题描述 投票:0回答:1

如果在常量字段中输入:

# cat=basic/enable/1; type=; label= My Variable
myVariable =

我按预期在常量编辑器中得到一个空字段。但是该字段旁边是一个还原按钮,该按钮可从编辑器中删除整个变量。

我该如何设置它,使其不被还原按钮删除?

在这种情况下,我没有工作。

typo3 typoscript typo3-7.6.x
1个回答
0
投票

我发现通过在这样的外部文件中设置常量:

<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/templates/mysite/Configuration/Typoscript/constants.typoscript">

它将使它们完好无损。

© www.soinside.com 2019 - 2024. All rights reserved.