C# 클래스 SitecoreExtension.ChildlistField.UI.ChildlistField

Context field (used in the Content editor)
상속: Custom
파일 보기 프로젝트 열기: 1508/SitecoreExtension-ChildlistField

공개 메소드들

메소드 설명
HandleMessage ( Message message ) : void

Handles Messages/Events

보호된 메소드들

메소드 설명
DoRender ( System.Web.UI.HtmlTextWriter output ) : void

Renders the control

비공개 메소드들

메소드 설명
AddNewChild ( string siblingAboveId ) : void

Adds a new child to the currentItem

EditChild ( string id ) : void

Opens a new window with the selected element where it can be edited

GetChildren ( ) : List

Gets all children which should be listed in the ChildlistField

GetDataContext ( ) : DataContext
GetEditingContextLanguage ( ) : Language

Editor language must be taken into account when adding new Items to the list for setting the correct language context based on the editing language and not the site language.

GetSelectFieldHtml ( string strEnabled ) : string

Creates the HTML necessary for the Select field displaying all the children (also used when updating the field by setting its outerhtml)

MoveChild ( string id, string direction ) : void

Moves a selected child

RemoveChild ( string id ) : void

Removes the selected child

RenderButton ( System.Web.UI.HtmlTextWriter output, string icon, string click ) : void

Helper method to render a button

SetNewSortordersOnChildren ( ) : void

Sitecore apply 0 as default sortorder value to all new items, so if the value is 0 on one of the items we need to supply a sortorder for all children in order move them

메소드 상세

DoRender() 보호된 메소드

Renders the control
protected DoRender ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
리턴 void

HandleMessage() 공개 메소드

Handles Messages/Events
public HandleMessage ( Message message ) : void
message Message
리턴 void