Skip to the content
Documentation

Recent changes

Recent ratings Recently added Recent comments Atom feed

35934 changed pages

Monday February 01 2016

  1. Implementing the Tweet\Type class (page id 30711527) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  2. How to use a custom controller to display a content item ... New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  3. How to paginate API search results (page id 30711518) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  4. The bundle (page id 30711521) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  5. How to expose SiteAccess aware configuration for your bun... New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  6. Implementing the Tweet\Value class (page id 30711525) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  7. How to retrieve root location (page id 30711517) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  8. How to convert request parameters into API objects (page ... New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  9. Creating the bundle (page id 30711522) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  10. Error handling (page id 30711251) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  11. Registering the Field Type as a service (page id 30711528) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  12. How to authenticate a user with multiple user providers (... New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  13. Implementing the Legacy Storage Engine Converter (page id... New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  14. Template implementation (page id 30711530) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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…

  15. Structuring the bundle (page id 30711524) New

    Changed 12:00 am · Last updated by Dominika Kurek on 02/01/2016

    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

  1. Architecture Updated

    Changed 12:00 am · Last updated by André Rømcke on 01/29/2016

    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…

  2. BlockingLimitation Updated

    Changed 12:00 am · Last updated by Dominika Kurek on 01/29/2016

    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…

  3. Configuration Updated

    Changed 12:00 am · Last updated by Dominika Kurek on 01/29/2016

    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…

  4. Configuration Updated

    Changed 12:00 am · Last updated by Dominika Kurek on 01/29/2016

    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…

  5. Configuration Updated

    Changed 12:00 am · Last updated by Dominika Kurek on 01/29/2016

    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…