Metadata Text field
Prints text that can contain HTML tags.
| Attribute | Description | Required |
|---|---|---|
| label | The text is shown as a label in the user interface. Since version 7.1.41, the label can render HTML. In the case of an HTML value, the string must be encoded, for example: <br><font color="red">red text</font><br>must be converted to <br><font color="red">red text</font><br>You can use an online XML entity encoder like https://coderstoolbox.net/string/#!encoding=xml&action=encode&charset=us_ascii |
true |
| name | A unique field identifier. Two metadata fields can’t have the same name. The name must be unique. The name must start with “okp:”. Using the metadata group name as the basis for the metadata field name is good practice. For example, if the metadata group name is “okg:consulting”, the corresponding field name can be “okp:consulting.text” by changing “okg” to “okp”. This helps to find the metadata group based on the metadata field name. Please use only letters, numbers, and underscores: “0-9a-zA-Z_”. |
true |
| width | The width of the HTML element. For KCenter, the UI must use width values based on %, for example: - width=“50%” will work - width=“100px” will be ignored in the KCenter UI. |
false |
| height | Height of the text widget. Accepts CSS size values (e.g. 25px). Default: 25px. Note: This attribute is inherited from FormElement but has no visual effect for this field type. |
No |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 3.15//EN" "http://www.openkm.com/dtd/property-groups-3.15.dtd"><property-groups> <property-group label="Consulting" name="okg:consulting"> <text label="text label" name="okp:consulting.text" width="200px" /> </property-group></property-groups>