Tweet FieldType for the eZ Platform FieldType tutorial
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Field Type Tutorial

This repository contains the bundle that is created in the Field Type Tutorial.

About the tutorial

This tutorial covers the creation and development of a custom eZ Platform Field Type on the example of a Tweet Field Type. The Field will:


Take a look at to learn how to contribute to this tutorial.

Tag stability warning

Code in this repository can and will be changed along with changes made to the tutorial, which also means that commit history can be rewritten and tags can be moved. This implies that you shouldn't rely on "git pull" for updating repository and instead should clone it again to avoid problems.

CLI and REST helpers

The example Content Type with TweetFieldType can be created from CLI using the following command:

php app/console ezsystems:tweet-fieldtype:create-contenttype

The example Content Object can be created from CLI using the following command:

php app/console ezsystems:tweet-fieldtype:create-content

Alternatively, you can use REST API. Content Type creation example using curl (requires enabling basic auth based configuration:

curl -u "admin:publish" -i -H "Accept: application/vnd.ez.api.ContentType+xml" \
-H "Content-Type: application/vnd.ez.api.ContentTypeCreate+xml" \
-X POST -d @src/EzSystems/TweetFieldTypeBundle/Resources/misc/create-content-type.xml \

Content Object creation using REST API requires changing Content Type ID in file src/EzSystems/TweetFieldTypeBundle/Resources/misc/create-content.xml to the one created in your installation. Then you can create Content Object, for example using curl (also requires enabling basic auth):

curl -u "admin:publish" -i -H "Accept: application/vnd.ez.api.Content+xml" \
-H "Content-Type: application/vnd.ez.api.ContentCreate+xml" \
-X POST -d @src/EzSystems/TweetFieldTypeBundle/Resources/misc/create-content.xml \