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
Afficher le fichier Open project: 1508/23-video-for-sitecore

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
DoRender ( System.Web.UI.HtmlTextWriter output ) : void

Private Methods

Méthode 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 méthode

protected DoRender ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
Résultat void

GetValue() public méthode

Returns that string to be saved as Raw Field value
public GetValue ( ) : string
Résultat string

SetValue() public méthode

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
Résultat void