sitecore Items

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • Database.GetItem(ID itemId)
  • Database.GetItem(ID itemId, Language language)
  • Database.GetItem(ID itemId, Language language, Version version)
  • Database.GetItem(string path)
  • Database.GetItem(string path, Language language)
  • Database.GetItem(string path, Language language, Version version)

Remarks

Most of the above examples make use of Sitecore.Context.Database to fetch items. Keep in mind that most Sitecore implementations have multiple content databases, so using the correct database to fetch your item is important.



Got any sitecore Question?