Table of Contents

Class FileEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a file editor.
[Editor("File")]
public class FileEditor : Editor
Inheritance
FileEditor
Inherited Members

Properties

AllowFrontendUpload

[AddInParameter("Allow file upload from frontend")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public bool AllowFrontendUpload { get; set; }

Property Value

bool

BaseDirectory

Gets or sets the virtual path to the base directory.
[AddInParameter("Base directory")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=std editor-parameter")]
public string BaseDirectory { get; set; }

Property Value

string

DataType

public override Type DataType { get; }

Property Value

Type

Extensions

Gets or sets the allowed extensions.
[AddInParameter("Extensions")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=std editor-parameter")]
public string Extensions { get; set; }

Property Value

string

Remarks

If extensions are entered, only files of those extensions are passed.

MaxFilesToAdd

[AddInParameter("Max files to add")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=std editor-parameter")]
public string MaxFilesToAdd { get; set; }

Property Value

string

ShowAsImageSelector

[AddInParameter("Show as image selector")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public bool ShowAsImageSelector { get; set; }

Property Value

bool

UseFocalSelector

[AddInParameter("Use focal point selector for images")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public bool UseFocalSelector { get; set; }

Property Value

bool

Validators

Gets or sets the list of editor validators.
public override ValidatorCollection Validators { get; }

Property Value

ValidatorCollection

Methods

BeginEdit(EditorContext)

[Obsolete("Do not use")]
public override void BeginEdit(EditorContext context)

Parameters

context EditorContext

BeginEditFrontend(EditorContext)

Enables the editor to populate its UI to the client and initiate the editing process on fontend.
[Obsolete("Do not use")]
public override void BeginEditFrontend(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.

EndEditFrontend()

Returnts the edited value for frontend
[Obsolete("Do not use")]
public override object EndEditFrontend()

Returns

object

GetViewModelValue(object)

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

Parameters

value object

Returns

object

HasValue()

Tell if this editor returns a value
[Obsolete("Do not use")]
public override bool HasValue()

Returns

bool

RenderItemListValue(string)

Render of the Item List value.
[Obsolete("Do not use")]
public override Editor.RenderedItemListResult RenderItemListValue(string value)

Parameters

value string
Value

Returns

Editor.RenderedItemListResult
Rendered Value

RenderValue(EditorRenderingContext)

Renders value.
public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext
Editor rendering context.
To top