Class LinkEditor
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
The LinkEditor class is a specialized editor for handling links. It extends from the LinkEditorBase class.
[Editor("Link")]
public class LinkEditor : LinkEditorBase
- Inheritance
-
LinkEditor
- Inherited Members
Remarks
This class provides functionality to select only page or paragraph ID, enable file selection, and get a view model value based on certain conditions. It overrides the DataType property from the base class to return a string type.
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
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
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
Methods
GetViewModelValue(object)
Gets the value to use when rendering items in view models - GetValue(string)
public override object GetViewModelValue(object value)
Parameters
value
object