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.
- Inheritance
-
Link
Editor
- 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.
Properties
DataType
Gets the data type for this editor.
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
EnableProductGroupSelection
Gets or sets value indicating whether to enable product group selection.
[AddInLabel("Enable product group selection")]
[AddInParameterOrder(50)]
[AddInParameter("EnableProductGroupSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool EnableProductGroupSelection { get; set; }
Property Value
EnableProductSelection
Gets or sets value indicating whether to enable product selection.
[AddInLabel("Enable product selection")]
[AddInParameterOrder(40)]
[AddInParameter("EnableProductSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool EnableProductSelection { 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 - Get
Parameters
value
object