Drupal 8 from a paragraph template loop through a reference paragraph unlimited field

Public

Inside a paragraph "op_collapsible_section" loop through a field paragraph reference field

Get raw version
php
  1. {# you may do to get single value #}
  2. {{ content.op_collapsible_section_item[0]['#paragraph'].op_collapsible_section_item_titl.value }}
  3. {# or loop all them all! #}
  4. {% for section in content.op_collapsible_section_item %}
  5. {% if section['#paragraph'] %}
  6. {# Prints title #}
  7. {{ section['#paragraph'].op_collapsible_section_item_titl.value }}
  8. {# Prints description #}
  9. {{ section['#paragraph'].op_collapsible_section_item_text.value|raw }}
  10. {% endif %}
  11. {% endfor %}