Im trying to create a plugin that will show up in the assets pane in Optimizely 12, and its not showing up. I have a component set up below, but its not visible:
[Component]
public sealed class MyComponent : ComponentDefinitionBase
{
public GlobalSettingsComponent()
: base("epi-cms/component/MainNavigationComponent")
{
this.LanguagePath = "/episerver/cms/components/myComponent";
this.Title = "My Component";
this.SortOrder = 1000;
this.PlugInAreas = new[] { PlugInArea.Assets };
this.Settings.Add(new Setting("repositoryKey",MyComponentRepositoryDescriptor.RepositoryKey));
}
}
[ServiceConfiguration(typeof(IContentRepositoryDescriptor))]
public class MyComponentRepositoryDescriptor: ContentRepositoryDescriptorBase
{
public static string RepositoryKey => "mycomponent";
public override IEnumerable<Type> ContainedTypes => new[] { typeof(CustomClass), typeof(CustomFolder) };
public override IEnumerable<Type> CreatableTypes => new[] { typeof(CustomClass), typeof(CustomFolder) };
public override string CustomNavigationWidget => "epi-cms/component/ContentNavigationTree";
public override string CustomSelectTitle =>
LocalizationService.Current.GetString("/contentrepositories/mycomponent/customselecttitle");
public override string Key => RepositoryKey;
public override IEnumerable<Type> MainNavigationTypes => new[] { typeof(CustomClass), typeof(CustomFolder) };
public override IEnumerable<string> MainViews => new string[1] { HomeView.ViewName };
public override string Name =>
LocalizationService.Current.GetString("/contentrepositories/mycomponent/name");
public override IEnumerable<ContentReference> Roots => new[] { this.MyClass.Service.GlobalRoot};
public override int SortOrder => 1000;
private Injected<ICustomClass> MyClass{ get; set; }
}
Im trying to create a plugin that will show up in the assets pane in Optimizely 12, and its not showing up. I have a component set up below, but its not visible: