Last active
August 29, 2015 14:06
-
-
Save ArveSystad/9664e576f55f70f84434 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[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