Factory Default Widget providers allow for a logical and physical separation of widgets. Physically, each provider's factory default widgets are stored in the file system under filestorage/defaultwidgets/{widget unique identifier}. Logically, disabling the provider plugin disables all widgets that belong to that provider. When working in widget studio, filtering the widget list to a specific provider is an option.
IScriptedContentFragmentFactoryDefaultProvider
The IScriptedContentFragmentFactoryDefaultProvider interface has a single property:
interface IScriptedContentFragmentFactoryDefaultProvider : IPlugin { Guid ScriptedContentFragmentFactoryDefaultIdentifier { get; } }
This property should return a unique identifier for the provider.
Example
using System; using Telligent.Evolution.Extensibility.UI.Version1; namespace Samples { public class SampleWidgetProvider : IScriptedContentFragmentFactoryDefaultProvider { #region IScriptedContentFragmentFactoryDefaultProvider Members private readonly Guid _identifier = new Guid("b740a034-c218-458d-b094-13e1f913cff0"); public Guid ScriptedContentFragmentFactoryDefaultIdentifier { get { return _identifier; } } #endregion #region IPlugin Members public string Description { get { return "Factory provider for sample widgets"; } } public void Initialize() { } public string Name { get { return "Sample Widget Provider"; } } #endregion } }
The example creates a provider with the name "Sample Widget Provider".