Sitecore
Whatโ
Display current Sitecore environment. Will not be active when sitecore.json and user.json don't exist.
Sample Configurationโ
{
"type": "sitecore",
"style": "plain",
"foreground": "#000000",
"background": "#FFFFFF",
"template": "Env: {{ .EndpointName }}{{ if .CmHost }} CM: {{ .CmHost }}{{ end }}"
}
Propertiesโ
Name | Type | Description |
---|---|---|
display_default | boolean | display the segment or not when the Sitecore environment name matches default - defaults to true |
Template ([info][templates])โ
default template
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}
Propertiesโ
Name | Type | Description |
---|---|---|
EndpointName | string | name of the current Sitecore environment |
CmHost | string | host of the current Sitecore environment |