Last active
April 13, 2016 19:14
-
-
Save mikeedwards83/430b9ba96b920450ae1e17908a76cc37 to your computer and use it in GitHub Desktop.
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 PageContentItemsService | |
{ | |
public readonly ID PageContentItemFolder = | |
new ID(ItemTree.Templates.Site.PageContentItems.Id); | |
public bool IsPageContentItemsFolder(Item item) | |
{ | |
return item.TemplateID == PageContentItemFolder; | |
} | |
public bool ShowPageContentItems | |
{ | |
get { return Registry.GetBool("/Current_User/UserOptions.View.ShowPageContentItems", false); } | |
set { Registry.SetBool("/Current_User/UserOptions.View.ShowPageContentItems", value); } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment