Table of Contents

Class AddInWithEditors

Namespace
Dynamicweb.Examples.Extensibility
Assembly
Dynamicweb.Examples.dll
The example of an abstract addin with attrbutes and parameter editors
[AddInActive(true)]
[AddInName("Abstract add-in")]
[AddInLabel("Abstract add-in")]
[AddInDescription("Just an example of using attributes and parameter editors.")]
[AddInImage("image.png")]
[AddInIcon(KnownIcon.ObjectGroup)]
[AddInDeprecated(false)]
[AddInAuthor("James Bond")]
[AddInGroup("Examples")]
[AddInTarget("Examples")]
[AddInOrder(0)]
[AddInUseParameterOrdering(true)]
[AddInUseParameterGrouping(true)]
[AddInUseParameters(false)]
public class AddInWithEditors : ConfigurableAddIn, IDropDownOptions
Inheritance
AddInWithEditors
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

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

Property Value

string

DateEditor

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

Property Value

DateTime

DecimalEditor

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

Property Value

decimal

DefaultFontName

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

Property Value

string

DefaultFontWeight

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

Property Value

string

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

FontEditor

[AddInParameter("Default font")]
[AddInParameterEditor(typeof(GoogleFontParameterEditor), "")]
public GoogleFont FontEditor { get; set; }

Property Value

GoogleFont

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

NumberEditorCurrency

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

Property Value

int

NumberEditorDecimal

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

Property Value

int

NumberEditorInteger

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

Property Value

int

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

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

[AddInLabel("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

UserEditor

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

Property Value

string

UserGroup

[AddInParameter("User group")]
[AddInParameterEditor(typeof(UserGroupParameterEditor), "multiple=false;")]
public string UserGroup { get; set; }

Property Value

string

YesNoEditor

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

Property Value

bool

Methods

GetOptions(string)

Implementation of IDropDownOptions interface
public Hashtable GetOptions(string dropdownName)

Parameters

dropdownName string

Returns

Hashtable
To top