For the eZ Publish & PHP Summer Camp 2015 , Steven Bressey proposed a Workshop :
Twig content rendering with eZObjectWrapperBundle
eZObjectWrapperBundle is an eZ5 Symfony bundle made by Kaliop to improve loading, manipulation and rendering of eZPublish Contents.
eZContentWrapper objects automatically encapsulate Content & Location; they can be created via a Factory which maps content classes to the specific eZContentWrapper subclass.
Developers can then add in their methods to eZContentWrapper objects to facilitate loading of related objects and data manipulation. A twig helper is also available for simple usage in 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: https://jira.ez.no/browse/EZP-23891
- The bundle source is here: https://github.com/kaliop/ezobjectwrapper
- And the description of what it does exactly is here: https://github.com/kaliop/ezobjectwrapper/wiki
Read the PHPSummerCamp 2015 Review of Gaetano
IT developer since 2003, has been working with PHP & eZ Publish for 5 years to build complex business-oriented websites.
Lead eZ Publish developer at Kaliop since 2013, has used eZ Publish 5 on several projects.