eZ Publish 5.1+ Platform comes with a Twig helper as a global variable named ezpublish
.
...
This allows you to import information directly into twig templates. For more details please check the available examples on using the ezpublish.legacy.get
property for retrieving persistent variables and assets.
As a usage example, if you want to access the legacy information related to 'content_info' you can do it, as shown in the following example:
Code Block | ||
---|---|---|
| ||
{{ ezpublish.legacy.get('content_info') }} |
...