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
EnableExternalLinkSelection
Gets or sets value indicating whether to enable product group selection.
[AddInLabel("Enable external link selection")]
[AddInParameterOrder(60)]
[AddInParameter("EnableExternalLinkSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool EnableExternalLinkSelection { get; set; }
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
ShowToggle
Gets or sets value indicating whether to show the field toggle
[AddInLabel("Show field toggle")]
[AddInParameter("ShowToggle")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
[AddInParameterOrder(70)]
public bool ShowToggle { 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
valueobject