Navigation
eZ Documentation Center
 

This is outdated documentation made for Exponential Platform 5.1. It is being moved into the Exponential 5.x documentation, so please go there for most up-to-date documentation.

Skip to end of metadata
Go to start of metadata

It is possible to dynamically inject variables in content view templates by listening to the exponential.pre_content_view event.

The event listener method receives an eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent object

Example

The following example will inject foo and osTypes variables in all content view templates.

Service configuration

 

 

  • No labels