C# Class SitecoreExtension.TwentythreeVideo.Fields.VideoEmbedLookup

Sitecore Field for Embedding Video, Sets raw value as the iframe EmbedCode so the field is ready to use as raw.
IContentField Enables us to override what is read and written to the Field Raw value with GetValue and SetValue!
Inheritance: LookupEx, IContentField
Mostrar archivo Open project: 1508/23-video-for-sitecore

Public Methods

Method Description
GetValue ( ) : string

Returns that string to be saved as Raw Field value

SetValue ( string value ) : void

Sets the value of the field based on the Raw field value. Parsed from PhotoId to Embed code so the field is ready for use.

Protected Methods

Method Description
DoRender ( System.Web.UI.HtmlTextWriter output ) : void

Private Methods

Method Description
EmbedCode ( string photo_id ) : string

Renders the value field as video embed code

GetPhotoId ( string embedCode ) : string

Parse PhotoId based on iframe code.

GetPhotoList ( ) : IEnumerable
GetPhotos ( IApiProvider apiProvider ) : List

Method Details

DoRender() protected method

protected DoRender ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
return void

GetValue() public method

Returns that string to be saved as Raw Field value
public GetValue ( ) : string
return string

SetValue() public method

Sets the value of the field based on the Raw field value. Parsed from PhotoId to Embed code so the field is ready for use.
public SetValue ( string value ) : void
value string
return void