10.4
  1. Access an Item

Access the context item

In presentation and other components, processing often begins with the context item. You can access the context item using the Sitecore.Context.Item property. For example, to access the context item:

Sitecore.Data.Items.Item contextItem = Sitecore.Context.Item ;
If you have suggestions for improving this article, let us know!