This is a past event. Please join us for Web Summer Camp this year.

Twig content rendering with eZObjectWrapperBundle


eZObjectWrapperBundle is an ez5 symfony bundle made by Kaliop to improve eZ Publish 5 Content view rendering in Twig templates. eZObjects can be created by an eZobjectFactory and automatically encapsulate content & location objects.

The bundle provides a mapping system to bind content types to their respective ezobject class, which enables developers to use their own methods to easily render content fields in Twig Templates.

The aim of this workshop is to introduce eZObjectWrapperBundle main features and set up some examples of content rendering using ezobjects.

The story of this open-source bundle was as a feature proposal:

The bundle source is here:

And the description of what it does exactly is here:

Setting up developer environment 

You can follow the workshop better with the virtual appliance configuration used at the event. Check out the main repo and follow the instructions. In a nutshell, you should be able to create the Vagrant box with:

$ git clone
$ cd summercamp-2015
$ git submodule init
$ git submodule update
$ vagrant up --no-provision

Then add all domains in the hosts as explained in the README.

To prepare this workshop, you should then:

$ vagrant ssh
(vagrant)$ cd /var/www/summercamp/
(vagrant)$ ./ ezobjwrapper

You should have the workshop accessible in your browser at http://ezobjwrapper.ezsc/. If you have problems, check the FAQ. If you still have problems, you can fall back to using only workshop repo listed here.