Message-ID: <402452520.2528.1485845337076.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2527_2045888392.1485845337076" ------=_Part_2527_2045888392.1485845337076 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Field Types

Field Types

=20
=20
=20
=20
Overview
=20

Field Types define what kind of data can be stored in a Field.

 

Field is the smallest unit for storing data in the content structure. Ea= ch Field can store data of a specific kind, defined by a Field Type.

To read more about the content structure in eZ, see Fundamental concepts.

=20
=20
=20
=20
=20
In this topic
=20

=20
Related topics
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

Field Type Structure

=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

The characteristics of a Field are determined by its Field Type. In eZ, = a Field is made up of the following elements:

  • Name - stores a user-friendly name that describes the Fiel= d:
    • The name of a Field can consist of letters, digits, spaces and special = characters.
    • The maximum length is 255 characters.
    • If a blank name is provided, eZ automatically generates a unique name f= or the Field.

Example: The title of= the Article

  • Identifier - stores the Name in the system. The internal u= se requires:
    • no more than 50 characters.
    • no special characters.
    • underscore permitted.

Example: article_titl= e

  • Description - gives details about the Field

Example: A brief desc= ription of the Article

  • Generic controls - provides a set of common propertie= s for all Field Types. These controls are the same for each Field, regardle= ss of its Field Type. There are following generic controls available by def= ault in the system:
    • Required
    • Searchable
    • Translatable
    • Field Group

  • Field Type specific controls - provide a unique set o= f properties for each Field Type structure. Depending of those properties, = you will have different configurations and then different behaviors.

Take the =E2=80=9CContent relation (multi= ple)=E2=80=9D Field Type: you can decide to have relation only to Content i= tems of a specific Content Type or to Content items of any Content Type.

Basically, all Field Types have different= properties.

 

You have an option of creating your own, custom Field Types, at a d= eveloper lever using PHP.

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

Preset Field Types

=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

Below are listed the preset Field Types existing in every installation, = as well as their specific controls.

 

Tip

You can also see all available Field Types by selecting the Almight= y Content Type contained in the Platform Demo bundle.

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20
Field Type Description Specific controls
Authors a list of authors, consisting= of author name and email -
Checkbox checked or unchecked box -
Content relation (single) relation with a single Content item
  • Default selection item - the Content item which is selected by default = (but can be changed)
Content relation (multiple) relation with multiple Content items
  • Default location - the location which is selected by default (but can b= e changed)
  • Allowed content types - Content Type(s) which can be linked to
Country country selected from a drop-down list
  • Multiple Choice - allows selection of multiple countries at the same ti= me
  • Select which countries by default - the country which is selected by de= fault
Date day date
  • Default value - choice between Empty and Current date
Date and time day date and time
  • Use seconds
  • Default value - choice between Empty, Current datetime or Adjusted curr= ent datetime
E-mail address a single e-mail address -
File a file of any type, uploaded from the user's sys= tem
  • Maximum file size (MB)
Float a floating-point number
  • Minimum value
  • Maximum value
ISBN an International Standard Book Number
  • ISBN-13 format - the ISBN provided in a 13-digit instead of 10-digit fo= rmat
Image an image uploaded from the user's system
  • Maximum file size (byte)
Integer an integer number
  • Minimum value
  • Maximum value
Keywords a keyword or list of comma-separat= ed keywords -
Layout a special Field Type for determini= ng the layout of a Landing Page
  • Default layout
Map location location on a map, represented as = a set of coordinates -
Media a media file, uploaded from the us= er's system
  • Maximum file size (MB)
  • Media type - type of file which can be uploaded
Rating rating for a page -
Rich text a block of rich text
  • Number of text rows in the editor
Selection selection from a list of multiple = choices
  • Multiple choice
  • Options
Text block block of unformatted text
  • Number of text rows
Text line line of unformatted text (a simple= string)
  • Minimum length
  • Maximum length
  • Default value
Time hour and minute (and possibly seco= nd) time
  • Use seconds
  • Default value - choice between Empty and Current time
URL link consisting of a url and link = text -
User account reference to a user account -
=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
------=_Part_2527_2045888392.1485845337076--