Class PropertyMediaListControl<T>
The default control for editing and displaying a PropertyMediaList
Inheritance
Inherited Members
Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public class PropertyMediaListControl<T> : PropertyMediaControlBase<MediaReferenceList<T>> where T : MediaReference, new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
PropertyMediaListControl()
Declaration
public PropertyMediaListControl()
Properties
OnPageEditHtml
Gets the OnPageEditHtml of the PropertyMediaListControl
Declaration
public string OnPageEditHtml { get; }
Property Value
Type | Description |
---|---|
System.String |
RowLayout
Gets the RowLayout of the PropertyMediaListControl
Declaration
public override TableRowLayout RowLayout { get; }
Property Value
Type | Description |
---|---|
EPiServer.Core.TableRowLayout |
ThumbnailFormatUtil
Gets the ThumbnailFormatUtil of the PropertyMediaControl
Declaration
public override ThumbnailFormatUtil ThumbnailFormatUtil { get; }
Property Value
Type | Description |
---|---|
ThumbnailFormatUtil |
Overrides
Methods
CreateDefaultControlsInner()
Creates the view controls
Declaration
protected override void CreateDefaultControlsInner()
Overrides
DataToString()
Returns a System.String that represents the current PropertyMediaControlBase<T>.
Declaration
protected override string DataToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current PropertyMediaControlBase<T>. |
Overrides
GetDefaultThumbnailUrl(String)
Gets the URL to the default thumbnail image
Declaration
public string GetDefaultThumbnailUrl(string virtualPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | virtualPath |
Returns
Type | Description |
---|---|
System.String |
RenderThumbnails(ref MediaReferenceList<T>, String, String, DisplayChannelSetting)
Renders the thumbnails on the supplied value
Declaration
public override string RenderThumbnails(ref MediaReferenceList<T> value, string virtualPath, string thumbnailCache, DisplayChannelSetting setting)
Parameters
Type | Name | Description |
---|---|---|
MediaReferenceList<T> | value | The value to use as |
System.String | virtualPath | The virtualPath of the EPiserver plugin |
System.String | thumbnailCache | The value retrieved from the thumbnail cache. This list should always be used unless it is null or empty |
DisplayChannelSetting | setting |
Returns
Type | Description |
---|---|
System.String | The new value for the thumbnailCache that should be used. |
Overrides
Remarks
This method is called when the UI should be updated to reflect the current selected media. The value represents the value that should be rendered and the thumbnail cache represents the values for the thumbnails that should be used. If that value is missing, then use the supplied value to calculate the url:s for the thumbnails.
StringToData(String)
Converts the supplied string to an object
Declaration
protected override object StringToData(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | This string comes from the postback from the edit mode |
Returns
Type | Description |
---|---|
System.Object | The object that the string represents or null if no data is entered |