London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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?