Skip to content

Instantly share code, notes, and snippets.

@ArveSystad
Last active August 29, 2015 14:06
Show Gist options
  • Save ArveSystad/9664e576f55f70f84434 to your computer and use it in GitHub Desktop.
Save ArveSystad/9664e576f55f70f84434 to your computer and use it in GitHub Desktop.
[ServiceConfiguration(typeof(IContentRepositoryDescriptor))]
public class ReviewPaneDescriptor : ContentRepositoryDescriptorBase
{
public static string RepositoryKey { get { return "reviews"; } }
public override string Key { get { return RepositoryKey; } }
public override string Name { get { return "Product reviews"; } }
public override IEnumerable<Type> ContainedTypes
{
get { return new [] { typeof(Review), typeof(ContentFolder) }; }
}
public override IEnumerable<Type> CreatableTypes
{
get { return new List<Type> { typeof(Review) }; }
}
public override IEnumerable<ContentReference> Roots
{
get { return new ContentReference[0]; }
}
public override IEnumerable<Type> MainNavigationTypes
{
get { return new[] { typeof(ContentFolder) }; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment