Widgets can be used to enhance the classic fields of a form, to provide input assistance.
Below is a list of widgets supported for modifying content attributes by type.
Note that some plugins provide their own widgets which are not listed here.
For example plugin Newsletter provides a widget to select a newsletter category.
Id of widget | Description | Rendering |
---|---|---|
No | Simple text on a single line. | |
<widget>edition.textarea</widget> <widget-params> <param name="maxLength">500</param> <param name="charCounter">true</param> </widget-params> |
Multi-line text. Possible parameters are :
| |
<widget>edition.select-page</widget> <widget-params> <param name="siteContext">all</param> <param name="sitemapContext">all</param> </widget-params> |
Select a page in the site map. With free choice of site and language:
With choice of current site and language only
With choice of current site and any language:
| |
<widget>edition.tag</widget> <widget-params> <param name="targetType">CONTENT</param> <param name="allowCreation">true</param> </widget-params> |
Select one or more content or page labels. The field value is the identifier of the selected label(s). Possible parameters are :
| |
<widget>edition.explorer-folder</widget> | Selects a resource explorer directory | |
<widget>edition.combobox</widget> <widget-params> <param name="naturalOrder">true</param> </widget-params> |
Widget used for the fields listed. Drop-down list for enumerated fields, with entries sorted alphabetically by default. For entries to be sorted in natural order (order of definition in the file), set the "naturalOrder" parameter to true. |
Id of widget | Description | Rendering |
---|---|---|
<widget>edition.file</widget> <widget-params> <param name="allowExtensions">jpg,jpeg,gif</param> <param name="filter">image</param> </widget-params> |
Allows you to download any type of local file. widget displays the file name, size and thumbnail, and allows you to download the uploaded file. Widget used by default for "binary" type fields Possible parameters are :
|
Id of widget | Description | Rendering |
---|---|---|
<widget>edition.file</widget> <widget-params> <param name="allowSources">external,resource</param> <param name="filter">image</param> </widget-params> |
Allows you to download any type of local file or select a file from the resource explorer. Possible parameters are :
|
Widget | Description | Rendering |
---|---|---|
<widget>edition.richtext</widget> <widget-params> <param name="height">300</param> <param name="maxLength">500</param> </widget-params> | Widget used by default for "rich-text" fields Possible parameters are :
|
Id of widget | Description | Rendering |
---|---|---|
<widget>edition.user</widget> |
Selects a person from the user database. Use completion to search for a user. Widget used by default for "user" type fields |
Id of widget | Description | Rendering |
---|---|---|
<widget>edition.select-content</widget> <widget-params> <param name="allowCreation">false</param> <param name="allowSearch">true</param> <param name="boxSize">large</param> <param name="minChars">2</param> </widget-params> |
Widget used by default for "content" fields Possible parameters are :
The boxSize parameter is available from version 4.4 onwards.
default: the search window measures 600 pixels. This is the default value wide: the search window measures 0.8 times the width of the window | |
<widget>edition.select-reference-table</widget> | Widget to be used for the selection of reference table content |
Id of widget | Description | Rendering |
---|---|---|
<widget>edition.multilingual-string</widget> |
Widget used by default for "multilingual-string" fields Set a text value for each available language |
Id of widget | Description | Rendering |
---|---|---|
No |
Simple text field allowing only numbers to be entered. Widget used by default for "long" type fields |
Id of widget | Description | Rendering |
---|---|---|
No |
Simple text field allowing only integers or decimals to be entered. Widget used by default for "double" fields |
Id of widget | Description | Rendering |
---|---|---|
No |
Select a date in a calendar. Widget used by default for "date" fields |
Id of widget | Description | Rendering |
---|---|---|
No |
Select date from calendar and time from editable drop-down list. Widget used by default for "datetime" fields |