Created
June 25, 2021 10:07
-
-
Save thinkfreshnick/c882d298165365818d0c02cd5ac92c37 to your computer and use it in GitHub Desktop.
Sitecore wrapper example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomeItem : CustomItem | |
{ | |
public HomeItem(Item innerItem) : base(innerItem) | |
{ | |
} | |
public int NewsItemLimit | |
{ | |
get { return Convert.ToInt32(this["News Item Limit"]); } | |
} | |
} | |
HomeItem home = new HomeItem(Sitecore.Context.Item); | |
int newsLimit = home.NewsItemLimit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment