Subfield type plugins#
The following table provides an overview of the data type options available to build a Custom Field.
| Plugin | Description |
|---|---|
| boolean | Store a true or false value. |
| color | Store a hexadecimal color value. |
| datetime | Store a date and optional timezone. |
| daterange | Store a duration consisting of start and end dates (and times) & optional timezone. |
| duration | Store a calculated number of seconds as an integer. |
| decimal | Store a number in the database in a fixed decimal format. Ideal for exact counts and measures. (prices, temperatures, distances, volumes, etc.) |
| Store an email address value. | |
| entity_reference | Store an entity id associated with a referenced entity. |
| file | Store an entity id associated with a file upload. |
| float | Store a number in the database in a floating point format. |
| image | Store an entity id & additional properties (height, width, alt) associated with an image upload. |
| integer | Store a number in the database as an integer. |
| link | Store a URL string, optional varchar link text, and optional blob of attributes to assemble a link. |
| map | Store a serialized array of values. |
| map_string | Store a serialized array of strings. |
| string | Store a plain string value. |
| string_long | Store a long text value. |
| telephone | Store a telephone number. |
| time | Store a time value. |
| time_range | Store a duration consisting of start and end times. |
| uri | Store a URI string. |
| uuid | Store a UUID (unique identifier) value. |
| viewfield | Store a reference to a view including a display, arguments & items to display. Requires the custom_field_viewfield sub-module. |