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 仅在主站点上添加JsTag_Typo3_Typoscript - Fatal编程技术网

Typo3 仅在主站点上添加JsTag

Typo3 仅在主站点上添加JsTag,typo3,typoscript,Typo3,Typoscript,格代 我只需要在主页上添加一个脚本。我找到的唯一方法是使用页面PID,我不知道 在起始页上只包含脚本的最佳实践是什么? 如果我需要PID,我如何找到它 亲切问候,输入3 noob。在后端,用鼠标指针将起始页悬停在页面树上,这样它将显示页面的UID(即id=1) 然后在打字稿模板中使用 [globalVar = TSFE:id = 1] // include script on page with UID 1 only [end] 比西尔的答案绝对正确。但也有一个新的条件,即更短更甜->检查

格代

我只需要在主页上添加一个脚本。我找到的唯一方法是使用页面PID,我不知道

在起始页上只包含脚本的最佳实践是什么? 如果我需要PID,我如何找到它


亲切问候,输入3 noob。

在后端,用鼠标指针将起始页悬停在页面树上,这样它将显示页面的UID(即
id=1

然后在打字稿模板中使用

[globalVar = TSFE:id = 1]
  // include script on page with UID 1 only
[end]

比西尔的答案绝对正确。但也有一个新的条件,即更短更甜->检查->页面| uid=1