Global Variables

These variables are available in all of the Extension item's code editors.

NameOptional ParameterDatatypeDescription
DSMX_ROOT_URLStringURL of the server.
IsInDesignerBooleanIf actually running inside the previewframe of the Designer
ItemClass[<Int>]StringCSS classname of the item. If indexed then the n-th name will be rendered.

JavaScript, HTML, and CSS Variables & Types

The following variables are available in the 'HTML Content', 'CSS Content', and the 'Scripts' section.

NameOptional ParameterDatatypeDescription
Short TextStringSimple Text.
Long TextStringSimple Text.
Select ListStringPredefined values only.
NumericNumericNumeric value
CheckboxBooleantrue / false
Imagew=<Int> h=<Int>
FileName
Source
Width
StringImage URL
Margin BoxStringQuadruple of numbers with optional unit
Select TargetStringCSS classname
ColorA
R
G
B
HTML
RGB
RGBA
StringQuadruple of numbers with optional unit.
Page SelectorNumberURL to selected page.
Style SelectorObjectStringCSS text style.
DB InputString
DB ColumnStringValue from database column.
DataRelation Selectorforeach
next
NoneNo output but allows data iteration.
DataRelation ColumnStringValue of column in current iteration row.
{{child_content}}foreach
next
StringJSON object of child items settings.
{{ItemWidth}}StringRenders width of the item. Needs 'Use Itemsize' to be activated.
{{ItemWidthStyle}}StringRenders CSS width or empty string depending on item setting. E.g. 'width: 155px;'
{{ItemHeight}}StringRenders height of the item. Needs 'Use Itemsize' to be activated.
{{ItemHeightStyle}}StringRenders CSS height or empty string depending on item setting. E.g. 'height: 270px;'

Item Definition Setter Types

The following list of setter types is only available in the ‘Item Defintion’ section.

NameOptional ParameterDatatypeDescription
CheckboxBooleantrue/false
ColorStringRGBA color
DataRelationNoneContent of this item will be repeated for each row in the selected datarelation.
DataRelationColumnStringValue of the column from current data row.
Imagew=<Int>
h=<Int>
StringImage URL
LinkPageName
PageTitle
StringURL to selected page or external link
MarginBoxStringQuadruple of numbers with optional unit.
NumericNumberNumeric value.
PageSelectorStringURL to selected page.
SelectListStringPredefined values.
StringStringPlain text.
SubmitNoneUse JavaScript "dsmf_submit('{{ItemID}}}')" to trigger submit action.
TextStyleObject
StyleName
StringCSS text styles.