<we:controlElement>
Since version: 3.1.0.0 | Requires endtag: no
Description
With the <we:controlElement> tag, you can manipulate control elements in the edit view of a document. Buttons can be hidden, checkboxes can be disabled, checked and/or hidden.
Attributes
type
Default value: - | since version: - | required: yes
Set this attribute to the type of control element to be manipulated.
Allowed values:
- button
- checkbox
name
Default value: - | since version: - | required: yes
Set this attribute to the desired function of the element, e.g. "save" for a save-button.
Allowed values:
- delete
- makeSameDoc
- publish
- save
- unpublish
- workflow (required module: Workflow Module)
hide
Default value: false | since version: - | required: no
Set this attribute to "true" to hide the element. Setting this attribute to "false" or not setting it at all displays the control element.
Allowed values:
- true
- false
readonly
Default value: false | since version: - | required: no
Setting this attribute to "true" results in not being able to modify the element´s state. Set this attribute to "false" or not setting it at all makes it editable.
Allowed values:
- true
- false
checked
Default value: - | since version: - | required: no
Here you can adjust the element´s default state (checked or unchecked).
Allowed values:
- true
- false
Syntax
<we:controlElement type="button|checkbox" name="delete|makeSameDoc|publish|save|unpublish|workflow" [hide="true|false"] [readonly="true|false"] [checked="true|false"] />
Examples
Example
<we:controlElement type="checkbox" name="save" checked="true" />