Sitecore
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra el entorno actual de Sitecore. No estará activo cuando sitecore.json y user.json no existan.
Configuración de ejemplo
- 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 }}"
Opciones
| Name | Type | Default | Description |
|---|---|---|---|
display_default | boolean | true | display the segment or not when the Sitecore environment name matches default |
Plantilla (info)
plantilla predeterminada
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}
Propiedades
| Name | Type | Description |
|---|---|---|
EndpointName | string | name of the current Sitecore environment |
CmHost | string | host of the current Sitecore environment |