Saltar al contenido principal

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

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

Opciones

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

Plantilla (info)

plantilla predeterminada
{{ .EndpointName }} {{ if .CmHost }}({{ .CmHost }}){{ end }}

Propiedades

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