Sitecore
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示当前 Sitecore 环境。当 sitecore.json 和 user.json 文件不存在时,该功能将不会激活。
示例配置
- json
- yaml
- toml
{
"type": "sitecore",
"style": "plain",
"foreground": "#000000",
"background": "#FFFFFF",
"template": "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}"
}
type: sitecore
style: plain
foreground: "#000000"
background: "#FFFFFF"
template: "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}"
type = "sitecore"
style = "plain"
foreground = "#000000"
background = "#FFFFFF"
template = "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}"
选项
| Name | Type | Default | Description |
|---|---|---|---|
display_default | boolean | true | display the segment or not when the Sitecore environment name matches default |
模板 (信息)
默认模板
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}
属性
| Name | Type | Description |
|---|---|---|
EndpointName | string | name of the current Sitecore environment |
CmHost | string | host of the current Sitecore environment |