Thiruvananthapuram
Account created on 19 June 2023, over 1 year ago
#

Recent comments

🇮🇳India Infospica Thiruvananthapuram

Thank you for your valuable time 

🇮🇳India Infospica Thiruvananthapuram

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? 

🇮🇳India Infospica Thiruvananthapuram

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 %}
Production build 0.71.5 2024