Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
Hi,
In your class, that implements IContentRepositoryDescriptor, can you override LinkableTypes and return null.
[ServiceConfiguration(typeof(IContentRepositoryDescriptor))] public class YourRepositoryDescriptor : MediaRepositoryDescriptor { private readonly IContentProviderManager ProviderManager; public YourRepositoryDescriptor(IContentProviderManager providerManager) { this.ProviderManager = providerManager; } public static new string RepositoryKey { get { return YourSettings.ProviderKey; } } public override string Key { get { return RepositoryKey; } } // Disble in link dialog public override IEnumerable<Type> LinkableTypes { get { return null; } } public override string Name { get { return YourSettings.ProviderName; } } public override string SearchArea { get { return RepositoryKey; } } public override IEnumerable<ContentReference> Roots { get { return new[] { this.ProviderManager.GetProvider(YourSettings.ProviderKey).EntryPoint }; } } public override IEnumerable<Type> ContainedTypes { get { return new[] { typeof(YourMediaFolder), typeof(YourMediaItem }; } } }
Sweet! I was just looking for that. Overriding the link EditorDescriptor for link was really messy.
I added some extra media-providers which work properly. The provider and it's file location now also show up in editor windows like the Hyperlink window. How can i prevent it from showing up in the Hyperlink window?