Meta Wizard
Details
This page shows version 4.x. The current version can be found here.
The meta data widget allows to edit meta data fields. If multiple languages are enabled, the widget will create a row for each language.
Options
| Key | Value | Description |
|---|---|---|
inputType | metaWizard (string) | |
eval.metaFields | array | An array of meta fields to be displayed. The array key is the field. Value can be an string of field attributes or an array. |
eval.metaFields.[field].type | string | The field input type. Only supported value is textarea, otherwise a text input is shown. |
eval.metaFields.[field].attributes | string | The field attributes. |
eval.metaFields.[field].dcaPicker | bool | Show a dca picker |
eval.metaFields.[field].rgxp | string | A validation regex. |
eval.metaFields.[field].rgxpErrMsg | string | Error message if regex validation failed. |
Example
The Meta Wizard configuration in the file manager.
use Doctrine\DBAL\Platforms\MySQLPlatform;
// …
'meta' => [
'exclude' => true,
'inputType' => 'metaWizard',
'eval' => [
'allowHtml' => true,
'multiple' => true,
'metaFields' => [
'title' => 'maxlength="255"',
'alt' => 'maxlength="255"',
'link' => ['attributes' => 'maxlength="2048"', 'dcaPicker' => true],
'caption' => ['type' => 'textarea'],
'license' => [
'attributes' => 'maxlength="255"',
'dcaPicker' => true,
'rgxp' => '#(^$|^{{link_url::.+$|^https?://.+$)#',
'rgxpErrMsg' => &$GLOBALS['TL_LANG']['tl_files']['licenseRgxpError'],
]
]
],
'sql' => [
'type' => 'blob',
'length' => MySQLPlatform::LENGTH_LIMIT_BLOB,
'notnull' => false,
],
],
// …
