Header image

Symfony Finland
Random things on PHP, Symfony and web development

Facebook sharing metadata for eZ Platform with Open Graph Bundle

Facebook sharing uses the Open Graph protocol to markup web documents to contain metadata. Because the eZ Platform is built using the Full Stack Symfony framework, developers can leverage existing Symfony Bundles. There is an existing Open Graph Bundle for the symfony framework that can be used …


Written by Jani Tarvainen on Wednesday November 9, 2016
Permalink -

A GraphQL enabled CaaS (Content as a Service) platform

eZ Platform is a capable content management system with a flexible and powerful data model. The application already exposes a comprehensive REST API to developers for decoupling using a headless approach to site development. But as we've all come to know REST APIs vary greatly in their function …


Written by Jani Tarvainen on Tuesday October 11, 2016
Permalink -

Use the eZ JavaScript Client (CAPI) for a headless CMS implementation

eZ Platform ships with a comprehensive REST API. The API has been around for quite a few years and is one of the most robust ones out there. In eZ Platform the UI itself largely utilises the REST API, but it does not do this directly - rather it uses an abstraction layer for this. This abstracti…


Written by Jani Tarvainen on Sunday September 25, 2016
Permalink -

eZ Platform Field Type gotcha: No type registered for...

When creating a new field type in eZ Platform, it's easy to miss that each field type needs to have defined an indexable class. This will lead to errors like this.... Indexing Content... 12/352 [>---------------------------] 3% [OutOfBounds…


Written by Jani Tarvainen on Tuesday May 24, 2016
Permalink -

Setting a default pagelayout for content in eZ Platform

Sponsored by Infolox In eZ Publish you could trust that the templating system will route the rendered menu content to be inserted into the pagelayout.tpl. This allowed developers to always be confortable that their global page elements like menus, search, header and footer will be available. …


Written by Jani Tarvainen on Wednesday April 6, 2016
Permalink -

How to find eZ Platform Bundles

eZ Platform is a Content Management System built on a heritage of 15 years of experience and the contemporary Symfony Full Stack PHP framework. Currently there is no supporting infrastructure to help developers find Symfony Bundles to extend functionality. Developers can search Packagist for eZ …


Written by Jani Tarvainen on Thursday March 31, 2016
Permalink -

Using the eZ Platform PHP API in Symfony Commands and Controllers

eZ Platform has an API exposed to PHP developers through the Symfony service mechanism. The eZ Platform documentation is getting better by the day and there are comprehensive references for the core functionalities like... eZ Platform Criteria Reference eZ Platform Limitations Referen…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to search and find Content with the eZ Platform PHP API (part 3/3)

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the FindContent3Command class. * * @copyright Copyright (C) eZ Systems AS. All righ…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to search and find Content with the eZ Platform PHP API (part 2/3)

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the FindContent2Command class. * * @copyright Copyright (C) eZ Systems AS. All righ…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to search and find Content with the eZ Platform PHP API (part 1/3)

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the FindContentCommand class. * * @copyright Copyright (C) eZ Systems AS. All right…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to load and view Content Metadata with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the ViewContentMetaDataCommand class. * * @copyright Copyright (C) eZ Systems AS. A…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to load and view Content with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the ViewContentCommand class. * * @copyright Copyright (C) eZ Systems AS. All right…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to update Content with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the CreateContentCommand class. * * @copyright Copyright (C) eZ Systems AS. All rig…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to copy and move Subtrees with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the SubtreeCommand class. * * @copyright Copyright (C) eZ Systems AS. All rights re…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to list Sections with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the BrowseLocationsCommand class. * * @copyright Copyright (C) eZ Systems AS. All r…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to list Sections with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the BrowseLocationsCommand class. * * @copyright Copyright (C) eZ Systems AS. All r…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to hide a Location with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the HideLocationCommand class. * * @copyright Copyright (C) eZ Systems AS. All righ…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to delete a Subtree with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the DeleteSubtree class. * * @copyright Copyright (C) eZ Systems AS. All rights res…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to create an Image with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the CreateImageCommand class. * * @copyright Copyright (C) eZ Systems AS. All right…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -

How to create a Content Type with the eZ Platform PHP API

This is a code example from the eZ Publish / eZ Platform API Cookbook on how to search and find Content using the eZ Publish content API in Symfony Controllers or Commands: <?php /** * File containing the CreateContentTypeCommand class. * * @copyright Copyright (C) eZ Systems AS. All…


Written by Jani Tarvainen on Wednesday March 30, 2016
Permalink -