Class ProductEditor
- Namespace
- Dynamicweb.Ecommerce.Content.Items.Editors
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a eCom product editor.
[Editor("Product")]
public class ProductEditor : EcomEditor<IEnumerable<string>>, IParameterOptions
- Inheritance
-
ProductEditor
- Implements
- Derived
- Inherited Members
Properties
ParagraphID
Gets or sets the paragraph identifier.
[AddInLabel("Show on paragraph")]
[AddInParameter("Show on paragraph")]
[AddInParameterEditor(typeof(ParagraphSelectEditor), "htmlClass=std editor-parameter")]
public string ParagraphID { get; set; }
Property Value
- string
The paragraph identifier.
RenderProductsFromGroups
Gets or sets the flag is the products from groups should be rendered on frontend.
[AddInLabel("Render products from groups on frontend")]
[AddInParameter("RenderProductsFromGroups")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public bool RenderProductsFromGroups { get; set; }
Property Value
ShowType
Gets or sets the value which defines objects types to show.
[AddInLabel("Show type")]
[AddInParameter("ShowType")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter;none=False;SortBy=Key")]
[AddInDescription("User object types to use in field")]
public string ShowType { get; set; }
Property Value
Methods
GetParameterOptions(string)
public IEnumerable<ParameterOption> GetParameterOptions(string parameterName)
Parameters
parameterName
string
Returns
GetViewModelValue(object)
Gets the value to use when rendering items in view models - GetValue(string)
public override object GetViewModelValue(object value)
Parameters
value
object
Returns
ParseValue(IEnumerable<string>)
Parses the value.
public static IEnumerable<object> ParseValue(IEnumerable<string> value)
Parameters
value
IEnumerable<string>The value.
Returns
- IEnumerable<object>
IEnumerable(Of System.Object).
ParseValue(string)
Parses the value.
public static IEnumerable<object> ParseValue(string value)
Parameters
value
stringThe value.
Returns
- IEnumerable<object>
Parsed value as
IEnumerable(Of System.Object)
.
RenderValue(EditorRenderingContext)
Renders the value.
public override void RenderValue(EditorRenderingContext context)
Parameters
context
EditorRenderingContextThe context.
See Also
EcomEditor<T>