Skip to content

Instantly share code, notes, and snippets.

@mikeedwards83
Last active April 13, 2016 19:14
Show Gist options
  • Save mikeedwards83/430b9ba96b920450ae1e17908a76cc37 to your computer and use it in GitHub Desktop.
Save mikeedwards83/430b9ba96b920450ae1e17908a76cc37 to your computer and use it in GitHub Desktop.
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