Sitecore Context Properties

Properties of the Sitecore context indicate a variety of information, including the current managed site and database accessed, the security context, and the content item requested, including its language and version.

No comments

 

topimage-sitecore

Properties of the Sitecore context indicate a variety of information, including the current managed site and database accessed, the security context, and the content item requested, including its language and version.

Important static properties of the Sitecore context (the Sitecore.Context class in the Sitecore.Kernell.dll assembly) include the following:

  1. Database — Sitecore database associated with the current request, or default database for the context site
  2. Device — Sitecore device associated with the current request, or default device for the context site
  3. Domain — Sitecore security domain associated with the context site
  4. Item — Item in the context database requested by the web client (based on the path in the requested URL)
  5. Items — Keyed collection of values available throughout the HTTP request lifecycle If you add items to this collection, be sure to use keys that Sitecore would never use.
  6. RawURL — Original URL requested by the web client before any modifi cations by Sitecore
  7. Site — Managed site associated with the current request
  8. Authenticated user, or anonymous user in the context security domain

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.