C# Class SitecoreExtension.ChildlistField.UI.ChildlistField

Context field (used in the Content editor)
Inheritance: Custom
ファイルを表示 Open project: 1508/SitecoreExtension-ChildlistField

Public Methods

Method Description
HandleMessage ( Message message ) : void

Handles Messages/Events

Protected Methods

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

Renders the control

Private Methods

Method Description
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

Method Details

DoRender() protected method

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

HandleMessage() public method

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