This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Creating a Point 2D field type¶
This tutorial covers the creation and development of a custom Ibexa DXP field type. The Generic field type is a powerful extension point. It enables you to build complex solutions on a ready-to-go field type template.
Field types are responsible for:
- Storing data, either using the native storage engine mechanisms or specific means
- Validating input data
- Making the data searchable (if applicable)
- Displaying fields
For more information, see field type documentation. It describes how each component of a field type interacts with the various layers of the system, and how to implement them.
Intended audience¶
This tutorial is aimed at developers who are familiar with Ibexa DXP and are comfortable with operating in PHP and Symfony.
Content of the tutorial¶
This tutorial shows you how to use the Generic field type as a template for a custom field type. You:
- create a custom Point 2D field type with two coordinates as input, for example '4,5'
- register the new field type as a service and define its template
- add basic validation to your Point 2D
- add data migration to the field type so you're able to change its output
Steps¶
In this tutorial you go through the following steps: