Fleshing out a content type with fields


show more Fleshing out a content type with fields provides you with in-depth training on Developer. Taught by Jon Peck as part of the Drupal 7 Custom Module Development show less
please wait ...

Fleshing out a content type with fields

Before describing how to add custom fields, some background is needed. Drupal 7 introduced an abstracted mechanism for handling data that made it possible to share the same Application Programming Interface for managing data structures and how the data structures relate. This API is known as The Entity API. At the highest level, an entity type is an abstract group of fields. A field is a reusable data container holding primitive data types such as text, numbers, and so forth.

An example of an entity type is a node, and nodes have both the title stored as text, and a unique identifier the node ID stored as a number. An entity is an instance of an entity type, and any given entity has the same fields. For example, node ID number 12 has the title of Finn, and node ID number 28 is called Jake. Both nodes have the same fields, title, and node ID, but the values can be different. Entity types can be sub-classed as a bundle.

A bundle is an entity type with a predefined collection of ...

Fleshing out a content type with fields
Video duration: 18m 36s 2h 56m Advanced

Viewers:

Fleshing out a content type with fields provides you with in-depth training on Developer. Taught by Jon Peck as part of the Drupal 7 Custom Module Development

Subjects:
Developer Web
Software:
Drupal
Author:
please wait ...