Class MediaBrowserProvider
- Namespace
- Dynamicweb.Extensibility.Provider
- Assembly
- Dynamicweb.dll
Allow file manager control to select image from external sources.
Inherit from this base class to implenent specific provider.
[Obsolete("Do not use")]
public abstract class MediaBrowserProvider
- Inheritance
-
MediaBrowserProvider
- Inherited Members
Examples
[AddInName("MWMediaBrowser")]
public class MWMediaBrowser: MediaBrowserProvider
public override bool AllowToShow(ByVal context As MediaContext)
{
return context.Folder.ToLower() == Dynamicweb.Content.Files.FilesAndFolders.GetImagesFolderName().ToLower();
}
public override string GetIcon()
{
return KnownIconInfo.ClassNameFor(KnownIcon.ExternalLink));
}
public override string GetUrl()
{
return "/CustomModules/MwMediaDatabase/mwMediaDatabase_popup.aspx";
}
}
Methods
AllowToShow(MediaContext)
Detect show or not button to execute images from external source for specified context.
public virtual bool AllowToShow(MediaBrowserProvider.MediaContext context)
Parameters
context
MediaBrowserProvider.MediaContext
Returns
GetIcon()
Override the icon for button - has to return a valid KnownIcon
public virtual string GetIcon()
Returns
Remarks
Default icon is ExternalLink.
Icon cannot be an image path
GetUrl()
Absolute url to browser
public abstract string GetUrl()