跳转到主内容

Sitecore

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示当前 Sitecore 环境。当 sitecore.json 和 user.json 文件不存在时,该功能将不会激活。

示例配置

{
"type": "sitecore",
"style": "plain",
"foreground": "#000000",
"background": "#FFFFFF",
"template": "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}"
}

选项

NameTypeDefaultDescription
display_defaultbooleantruedisplay the segment or not when the Sitecore environment name matches default

模板 (信息)

默认模板
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}

属性

NameTypeDescription
EndpointNamestringname of the current Sitecore environment
CmHoststringhost of the current Sitecore environment