Table of Contents

Class CodeProviderAddInWithEditors

Namespace
Dynamicweb.Examples.Extensibility
Assembly
Dynamicweb.Ecommerce.Examples.dll
The example of an abstract addin with attrbutes and parameter editors
[AddInActive(true)]
[AddInName("Abstract code provider add-in")]
[AddInLabel("Abstract code provider add-in")]
[AddInDescription("Just an example of using attributes and parameter editors.")]
[AddInDeprecated(false)]
[AddInAuthor("James Bond")]
[AddInGroup("Examples")]
[AddInTarget("Examples")]
[AddInOrder(0)]
[AddInUseParameterOrdering(true)]
[AddInUseParameterGrouping(true)]
[AddInUseParameters(false)]
public class CodeProviderAddInWithEditors : CodeProviderBase, ICodeProvider, IDropDownOptions
Inheritance
CodeProviderAddInWithEditors
Implements
Inherited Members

Properties

CheckListEditor

[AddInParameter("CheckList")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(CheckListParameterEditor), "infoText=A little description for parameter")]
public string CheckListEditor { get; set; }

Property Value

string

ColorEditor

[AddInParameter("Color")]
[AddInParameterEditor(typeof(ColorParameterEditor), "")]
public string ColorEditor { get; set; }

Property Value

string

DateEditor

[AddInParameter("Date")]
[AddInParameterEditor(typeof(DateTimeParameterEditor), "hideName=true;")]
[AddInParameterGroup("Source")]
public DateTime DateEditor { get; set; }

Property Value

DateTime

DecimalEditor

[AddInParameter("Decimal")]
[AddInParameterEditor(typeof(FloatingPointNumberParameterEditor), "minValue=0;maxValue=10;allowNegativeValues=false;localizeValues=true;inputClass=std;disabled=false")]
public decimal DecimalEditor { get; set; }

Property Value

decimal

DropDownEditor

[AddInParameter("DropDownEditor")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=false;SortBy=Value;")]
public string DropDownEditor { get; set; }

Property Value

string

FileEditor

[AddInParameter("FileEditor")]
[AddInParameterEditor(typeof(FileManagerEditor), "usefilesfolder=true;allowBrowse=true;extensions=js;file=System/config/clean.js;showfullpath=true;Icon=fa fa-exclamation-triangle;Tooltip=Select a js file;")]
public string FileEditor { get; set; }

Property Value

string

FolderCustomEditor

[AddInParameter("FolderCustom")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=NewUIinput;")]
public string FolderCustomEditor { get; set; }

Property Value

string

FolderFilesEditor

[AddInParameter("FolderFiles")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=NewUIinput;usefilesfolder=true")]
public string FolderFilesEditor { get; set; }

Property Value

string

FolderImagesEditor

[AddInParameter("FolderImages")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=NewUIinput;useimagesfolder=true")]
public string FolderImagesEditor { get; set; }

Property Value

string

GroupedDropDownEditor

[AddInParameter("GroupedDropDown")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(GroupedDropDownParameterEditor), "SortBy=Group,Key;none=false;")]
public string GroupedDropDownEditor { get; set; }

Property Value

string

IntegerEditor

[AddInParameter("IntegerEditor")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
public int IntegerEditor { get; set; }

Property Value

int

ItemType

[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "inputClass=std; StructureType=All; AllowEditParameterOptions=False")]
public string ItemType { get; set; }

Property Value

string

LabelEditor

[AddInParameter("Example of static link")]
[AddInParameterEditor(typeof(LabelParameterEditor), "")]
public string LabelEditor { get; set; }

Property Value

string

MoreLessEditor

[AddInParameter("MoreLessEditor")]
[AddInParameterEditor(typeof(MoreLessParameterEditor), "")]
public string MoreLessEditor { get; set; }

Property Value

string

MultipleValuesEditor

[AddInParameter("MultipleValuesEditor")]
[AddInParameterEditor(typeof(MultipleValuesEditor), "")]
public string MultipleValuesEditor { get; set; }

Property Value

string

ParagraphId

[AddInParameter("Show on paragraph")]
[AddInParameterEditor(typeof(ParagraphSelectEditor), "htmlClass=std")]
public string ParagraphId { get; set; }

Property Value

string

PeriodEditor

[AddInParameter("Period editor")]
[AddInParameterEditor(typeof(PeriodParameterEditor), "")]
public string PeriodEditor { get; set; }

Property Value

string

ProductAndGroup

[AddInParameter("Product and group selector")]
[AddInParameterEditor(typeof(ProductsAndGroupsEditor), "FormID=MainForm")]
[AddInParameterGroup("Source")]
public static string ProductAndGroup { get; set; }

Property Value

string

ProductId

[AddInParameter("Product")]
[AddInParameterEditor(typeof(ProductSelectorParameterEditor), "FormID=forms[0]")]
[AddInParameterGroup("Source")]
public string ProductId { get; set; }

Property Value

string

RadioEditor

[AddInParameter("RadioButtons")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(RadioParameterEditor), "")]
public string RadioEditor { get; set; }

Property Value

string

Template

[AddInParameter("Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=templates/MyModule/Email/;FullPath=true;NewGUI=true")]
public string Template { get; set; }

Property Value

string

Text

[AddInParameter("Text")]
[AddInParameterOrder(0)]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
[AddInIsEditable(true)]
public string Text { get; set; }

Property Value

string

UrlToPage

[AddInParameter("URL to page")]
[AddInParameterEditor(typeof(PageSelectEditor), "")]
public string UrlToPage { get; set; }

Property Value

string

YesNoEditor

[AddInParameter("YesNo")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool YesNoEditor { get; set; }

Property Value

bool

Methods

BuildDisplayValue()

public override string BuildDisplayValue()

Returns

string

GetOptions(string)

Implementation of IDropDownOptions interface
public Hashtable GetOptions(string dropdownName)

Parameters

dropdownName string

Returns

Hashtable
To top