Infospica → created an issue.
Thank you for the reply. I don't know if this method is possible for our case. In our scenario, we want to use a common database for multiple developers in our local environment. We may clear the cache frequently during the development process. Can you give me any suggestions for achieving this process?
You can get the child paragraph values in the parent paragraph like shown below.
{% for key,value in content.field_child_paragraph['#items'] %}
{{content.field_child_paragraph[key]['#paragraph'].field_title.value }}
{% endfor %}
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.
{% for key,value in content.field_child_paragraph['#items'] %}
{{file_url(content.field_child_paragraph[key]['#paragraph'].field_image.entity.uri.value)}}
{% endfor %}
Infospica → created an issue.
Infospica → created an issue.