...
ez_render_field()
is a Twig helper allowing you to display a Content item's Field value, taking advantage of the template block exposed by the FieldType Field Type used.
Info |
---|
Template blocks for built-in FieldTypes Field Types reside in EzPublishCoreBundle. |
...
Argument name | Type | Description | ||
---|---|---|---|---|
content | eZ\Publish\Core\Repository\Values\Content\Content | Content object the displayable field belongs to. | ||
fieldDefinitionIdentifier | string | The identifier the Field is referenced by. | ||
params | hash | Hash of parameters that will be passed to the template block. By default you can pass 2 entries:
|
...
Info |
---|
Your template block must comply to a regular FieldType Field Type template block, as explained in the FieldType Field Type documentation. |
Inline override
...
Tip | |||||
---|---|---|---|---|---|
| |||||
When overriding a field template block, it is possible to call the "parent." one. For this, you need to import original template horizontally, using
|
...
Inline override using current template
Info | ||
---|---|---|
| ||
Inline override using current template is possible as of 5.2 / 2013.11 |
If you want to override a specific field template only once (i.e. because your override would be only valid in your current template), you can specify the current template to be the source of the field block.
...
Warning | ||
---|---|---|
| ||
Using This is basically the same limitation than as for Symfony form themes. |
Global override
...