diff --git a/docs/bundles/SyliusGridBundle/field_types.rst b/docs/bundles/SyliusGridBundle/field_types.rst index ded31b56c8..2626c67052 100644 --- a/docs/bundles/SyliusGridBundle/field_types.rst +++ b/docs/bundles/SyliusGridBundle/field_types.rst @@ -60,6 +60,12 @@ You just have to specify the template and it will be rendered with the ``data`` In the ``:Grid/Column:_prettyName.html.twig`` template, you just need to render the value for example as you see below: +.. code-block:: twig + + {{ data }} + +If you wish to render more complex grid fields just redefine the path of the field to root – ``path: .`` in the yaml and you can access all attributes of the object instance: + .. code-block:: twig {{ data.name }}