By ajish s on
I'm having the requirement to get the child paragraph field values in the parent paragraph twig considering my HTML structure.
So please give me any suggestion to get the child paragraph values in parent_paragraph.html.twig
I'm having the requirement to get the child paragraph field values in the parent paragraph twig considering my HTML structure.
So please give me any suggestion to get the child paragraph values in parent_paragraph.html.twig
Comments
You can get the child
You can get the child paragraph values in the parent paragraph like shown below.
field_child_paragraph - The entity reference field machine name of the child paragraph
field_title - The field machine name in the child paragraph
If you want to get the image url from the child paragraph you can render it like shown below.
Thanks
It working fine. thanks for your reply
Node twig
I want to render the paragraph field values in node.html.twig
Node twig
You can also use the same code which is used to render the child paragraph in parent paragraph to get the values in node.html.twig
Thanks
Its Working fine