There are differences between the plugins and theme component types.
I tried to make a table (expects minor errors or grouping)
| Category | Functionality | Plugin Syntax | TC Syntax |
|---|---|---|---|
| Basic Types | String | type: stringmin: ..max: ..regex: ..secret: true/falseglobal validator: class name |
type: stringmin: ..max: .. - - - - |
| Multiline text | type: stringtextarea: true |
type: stringtextarea: true |
|
| Integer | type: integermin: ..max: .. |
type: integermin: ..max: .. |
|
| Float | type: floatmin: ..max: .. |
type: floatmin: ..max: .. |
|
| Boolean | type: bool |
type: bool |
|
| Time | type: time |
- | |
| Null | type: null |
- | |
| Selection Types | Enum (dropdown) | type: enumchoices: [option1, option2]enum: .. |
type: enumchoices: [option1, option2] |
| Category | type: category |
- | |
| Color | type: color |
- | |
| Group | type: group |
- | |
type: email |
- | ||
| Username | type: username |
- | |
| List Types | Generic List | type: listallow_any: true/false |
type: list |
| Simple/Compact List | type: simple_listOr type: listlist_type: compactlist_type: simple |
type: listlist_type: compactlist_type: simple |
|
| Category List | type: category_list |
type: listlist_type: category |
|
| Group List | type: group_list |
type: listlist_type: group |
|
| Tag List | type: tag_list |
type: listlist_type: tag |
|
| Tag Group List | type: tag_group_list |
- | |
| URL List | type: url_list |
- | |
| Host List | type: host_list |
- | |
| Value List | type: value_list |
- | |
| Emoji List | type: emoji_list |
- | |
| File Types | Upload | type: upload |
type: upload |
| Uploaded Image List | type: uploaded_image_list |
- | |
| File Size Restriction | type: file_size_restrictionmin: ..max: .. |
- | |
| Special Types | HTML (deprecated) | type: html_deprecated |
- |
| JSON Objects | deprecated | deprecated | |
| Objects | - | type: objects |