Table of Contents

Class LinkEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a link editor.
[Editor("Link")]
public class LinkEditor : LinkEditorBase
Inheritance
LinkEditor
Inherited Members

Constructors

LinkEditor()

Initializes a new instance of an object.
public LinkEditor()

Properties

DataType

Gets the data type for this editor.
public override Type DataType { get; }

Property Value

Type

EnableFileSelection

Gets or sets value indicating whether to enable file selection.
[AddInLabel("Enable file selection")]
[AddInParameterOrder(30)]
[AddInParameter("EnableFileSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter")]
public bool EnableFileSelection { get; set; }

Property Value

bool

SelectOnlyID

[AddInLabel("Select only page or paragraph ID")]
[AddInParameterOrder(24)]
[AddInParameter("SelectOnlyID")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter")]
public bool SelectOnlyID { get; set; }

Property Value

bool

Methods

BeginEdit(EditorContext)

Enables the editor to populate its UI to the client and initiate the editing process.
[Obsolete("Do not use")]
public override void BeginEdit(EditorContext context)

Parameters

context EditorContext
Editor context.

EndEdit()

Returns the edited value.
[Obsolete("Do not use")]
public override object EndEdit()

Returns

object
The edited value.

GetViewModelValue(object)

Gets the value to use when rendering items in view models -
public override object GetViewModelValue(object value)

Parameters

value object

Returns

object
To top