Recently added
Monday February 01 2016
-
The bundle Updated
FieldTypes, like any other eZ Platform extensions, must be provided as Symfony 2 bundles. This chapter will cover the creation and organization of this bundle. First, we will explain how to generate the skeleton for a st…
-
Implementing the Tweet\Type class (page id 30711527) New
As said in the introduction, the Type class of a Field Type must implement eZ\Publish\SPI\FieldType\FieldType (later referred to as "Field Type interface"). All native Field Types also extend the eZ\Publish\Core\FieldTyp…
-
How to use a custom controller to display a content item ... New
Enhanced views for Content/Location In some cases, displaying a Content item/Location via the built-in ViewController is not sufficient and will force you to make many sub-requests in order to access different parameters…
-
How to paginate API search results (page id 30711518) New
Description When listing content (e.g. blog posts), pagination is a very common use case and is usually painful to implement by hand. For this purpose eZ Platform recommends the use of Pagerfanta library and proposes ada…
-
The bundle (page id 30711521) New
FieldTypes, like any other eZ Platform extensions, must be provided as Symfony 2 bundles. This chapter will cover the creation and organization of this bundle. First, we will explain how to generate the skeleton for a st…
-
How to expose SiteAccess aware configuration for your bun... New
Description Symfony Config component makes it possible to define semantic configuration , exposed to the end developer. This configuration is validated by rules you define, e.g. validating type (string, array, integer, b…
-
Implementing the Tweet\Value class (page id 30711525) New
The Value class of a Field Type is by design very simple. It is meant to be stateless, and as lightweight as possible. Therefore, this class must contain as little logic as possible, as this is the responsibility of the…
-
How to retrieve root location (page id 30711517) New
Description Knowledge of the root location is important since it can be a starting point for API queries, or even links to home page, but as eZ Platform can be used for multisite development , the root location can vary…
-
How to convert request parameters into API objects (page ... New
What it does In lots of cases, a request will provide a contentId or a locationId. Before using them, you will have to load API object within your controller. For example: Thanks to the param converter, you can directly…
-
Creating the bundle (page id 30711522) New
Custom Field Types follow the Symfony 2 extension mechanism: bundles . We can get started with a bundle using the built-in Symfony 2 bundle generator. Generating the bundle From the eZ Platform root, run the following: F…
-
Error handling (page id 30711251) New
Error handling in the REST API is fully based on HTTP error codes. As a web developer, you are probably familiar with the most common ones: 401 Unauthorized, 404 Not Found or 500 Internal Server Error. The REST API uses…
-
Registering the Field Type as a service (page id 30711528) New
To complete the implementation, we must register our Field Type with Symfony by creating a service for it. Services are by default declared by bundles in Resources/config/services.yml. Using a dedicated file for the Fiel…
-
How to authenticate a user with multiple user providers (... New
Description Symfony provides native support for multiple user providers . This makes it easy to integrate any kind of login handlers, including SSO and existing 3rd party bundles (e.g. FR3DLdapBundle , HWIOauthBundle , F…
-
Implementing the Legacy Storage Engine Converter (page id... New
So far, our Field Type’s value is represented by the Tweet\Value class. It holds a semantic representation of the type’s data: a url, author url and the tweet's content. The next step is to tell the system how to actuall…
-
Template implementation (page id 30711530) New
In order to display data of our Field Type from templates, we need to create and register a template for it. You can find documentation about FieldType templates , as well as on importing settings from a bundle . In a co…
-
Structuring the bundle (page id 30711524) New
At this point, we have an “anonymous” Symfony 2 bundle. Let’s start by creating the structure for our Field Type. To make it easier to move around the code, we will to some extent mimic the structure that is used in the…
Friday January 29 2016
-
Architecture Updated
5.X With the introduction of 5.x in 2012, Exponential made an important leap forwards in terms of technology, introducing a new architecture side by side with the 4.x based "Legacy", allowing user to gradually migrate to…
-
BlockingLimitation Updated
A generic Limitation type to use when no other Limitation has been implemented. Without any limitation assigned, a LimitationNotFoundException is thrown. It is called "blocking" because it will always tell the permission…
-
Configuration Updated
The Basics Important Configuration is tightly related to the service container. To fully understand the following content, you need to be familiar with Symfony's service container and its configuration . Basic configurat…
-
Configuration Updated
The Basics Important Configuration is tightly related to the service container. To fully understand the following content, you need to be familiar with Symfony's service container and its configuration . Basic configurat…