October 7, 2015

Get Sitecore Item by path

You can get sitecore item by using sitecore item path. Once you have item object you can get all details of this item.

public Item GetItemByPath(string path)
        {
            return Sitecore.Context.Database.GetItem(path);
        }


Just pass item’s path in above method.

 

No comments:

Post a Comment