Field Types reference
This page contains a reference of Field Types used in eZ Platform.
Field Types were known as DataTypes in legacy Exponential. If you would like more details about them, please refer to the 4.x DataTypes reference documentation page.
For the general Field Type documentation see Field Type API and best practices.
If you are looking for the documentation on how to implement a custom Field Type, see Field Type Tutorial.
A Field Type is the smallest possible entity of storage. It determines how a specific type of information should be validated, stored, retrieved, formatted and so on. eZ Platform comes with a collection of fundamental types that can be used to build powerful and complex content structures. In addition, it is possible to extend the system by creating custom Field Types for special needs. Custom Field Types have to be programmed in PHP. However, the built-in Field Types are usually sufficient enough for typical scenarios. The following table gives an overview of the supported Field Types that come with eZ Platform.
| FieldType | Description | Searchable in Legacy Storage engine |
|---|---|---|
| Author | Stores a list of authors, each consisting of author name and author email. | No |
| BinaryFile | Stores a file. | Yes |
| Checkbox | Stores a boolean value. | Yes |
| Country | Stores country names as a string. | Yes |
| DateAndTime | Stores a full date including time information. | Yes |
| Date | Stores date information. | Yes |
| EmailAddress | Validates and stores an email address. | Yes |
| Float | Validates and stores a decimal value. | No |
| Image | Validates and stores an image. | No |
| Integer | Validates and stores an integer value. | Yes |
| ISBN | Handles International Standard Book Number (ISBN) in 10-digit or 13-digit format. | Yes |
| Keyword | Stores keywords. | No |
| MapLocation | Stores map coordinates. | Yes, with MapLocationDistance criterion |
| Matrix | Available via community Bundle: https://github.com/ezcommunity/EzMatrixFieldTypeBundle | |
| Media | Validates and stores a media file. | No |
| Null | Used as fallback for missing Field Types and for testing purposes. | No |
| Page | Used to manage display zones and blocks in a page (formerly known as eZ Flow datatype). | No |
| Price | Available via community Bundle: https://github.com/ezcommunity/EzPriceBundle | |
| Rating | Stores a rating. | No |
| Relation | Validates and stores a relation to a Content item. | Yes, with both Field and FieldRelation criterions |
| RelationList | Validates and stores a list of relations to Content items. | Yes, with FieldRelation criterion |
| Selection | Validates and stores a single selection or multiple choices from a list of options. | Yes |
| Selection2 | Available via community Bundle: https://github.com/netgen/NetgenEnhancedSelectionBundle | |
| Tags | Available via community Bundle: https://github.com/netgen/TagsBundle | |
| TextBlock | Validates and stores a larger block of text. | No |
| TextLine | Validates and stores a single line of text. | Yes |
| Time | Stores time information. | Yes |
| Url | Stores a URL / address. | No |
| User | Validates and stores information about a user. | No |
| XmlText | Validates and stores multiple lines of formatted text. | Yes |
Known missing Field Types
The following Field Types are configured using Null Field Type to avoid exceptions if they exists in your database, but their functionality is currently not known to be implemented out of the box or by the community:
EZP-20112 - Some Shop FieldTypes are not supported by Public API Backlog
EZP-20115 - eZ Identifier FieldType not supported by Public API Backlog
EZP-20114 - Deprecated FieldTypes (ezenum, ezinisetting, ezpackage) not supported by Public API Closed
EZP-20116 - eZ SubtreeSubscription FieldType not supported by Public API Closed
EZP-20117 - eZ Survey FieldType not supported by Public API Closed
EZP-20118 - eZ Password Expiry FieldType not supported by Public API Backlog
Related topics:
In this section
- The Author Field Type Field Type representing a list of authors, consisting of author name, and author email. Name Internal name Expected input Output...
- The BinaryFile Field Type This Field Type represents and handles a binary file. It also counts the number of times the file has been downloaded from the content/download module.
- The Checkbox Field Type This field type represents a Checkbox status, checked or unchecked.
- The Country Field Type This Field Type represents one or multiple countries.
- The DateAndTime Field Type This Field Type represents a full date including time information.
- The Date Field Type This Field Type represents a date without time information.
- The EmailAddress Field Type This Field Type represents an email address, in the form of a string.
- The Float Field Type This Field Type represents a float value.
- The Image Field Type Field Type identifier: ezimageValidators: File sizeValue object: \eZ\Publish\Core\FieldType\Image\ValueAssociated Services: exponential.fieldType.ezimage.variation_service
- The Integer Field Type This Field Type represents an integer value.
- The ISBN Field Type This Field Type represents an ISBN string.
- The Keyword Field Type This Field Type represents keywords.
- The LandingPage Field Type This page describes features available only in eZ Studio.
- The MapLocation Field Type This Field Type represents a geographical location.
- The Media Field Type This Field Type represents and handles media (audio/video) binary file.
- The Null Field Type This Field Type is used as fallback and for testing purposes.
- The Page Field Type Deprecated
- The Rating Field Type This Field Type is used to provide rating functionality.
- The Relation Field Type This Field Type represents a relation to a Content item.
- The RelationList Field Type This Field Type represents one or multiple relations to content.
- The RichText Field Type This Field Type validates and stores structured rich text, and exposes it in several formats.
- The Selection Field Type This Field Type represents a single selection or multiple choices from a list of options.
- The TextBlock Field Type This Field Type represents a block of unformatted text.
- The TextLine Field Type This Field Type represents a simple string.
- The Time Field Type This Field Type represents time information.
- The Url Field Type This Field Type represents a hyperlink. It is formed by the combination of a link and the respective text.
- The User Field Type This Field Type validates and stores information about a user.
- The XmlText Field Type The XmlText Field Type isn't officially supported by eZ Platform. It can be installed by requiring ezsystems/ezplatform-xmltext-fieldtype. PlatformUI does not support wysiwyg editing of this type of Field.
- The Image Field Type Field Type identifier: ezimageValidators: File sizeValue object: \eZ\Publish\Core\FieldType\Image\ValueAssociated Services: exponential.fieldType.ezimage.variation_service
- The Page Field Type Deprecated
- The Page Field Type Deprecated
- The Page Field Type Deprecated
- The RichText Field Type This Field Type validates and stores structured rich text, and exposes it in several formats.
- The RichText Field Type This Field Type validates and stores structured rich text, and exposes it in several formats.
Contributors
- Ricardo Correia
- Dominika Kurek Updated
Comments
Add a comment