C# Класс 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!
Наследование: LookupEx, IContentField
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
DoRender ( System.Web.UI.HtmlTextWriter output ) : void

Приватные методы

Метод Описание
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

Описание методов

DoRender() защищенный Метод

protected DoRender ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
Результат void

GetValue() публичный Метод

Returns that string to be saved as Raw Field value
public GetValue ( ) : string
Результат string

SetValue() публичный Метод

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
Результат void