Sitecore 5.0 API

State.Theme Property

Gets or sets the current theme.

[Visual Basic]
Public Shared Property Theme As String
[C#]
public static string Theme {get; set;}

Property Value

The name of the current theme.

Remarks

A theme is the appearance of the Sitecore client. Themes control the stylesheet and images used in the client.

The theme is initialized during user login.

The desktop for a specific user is specified in the Theme field on the __User template. This is a lookup field pointing to "/sitecore/system/Desktops and Themes/Themes".

If the user item does not specify a theme, the value from DefaultTheme is used.

The scope of the value is session and it is stored in the Session variable "SC_THEME".

See Also

State Class | Sitecore.Configuration Namespace | Desktop