我有一个内容类型,它指定一个称为Soup的格式化文本数组。它是无限的。
在树枝中,在for块下是否显示速记?
This shows all 3 nodes.
{% for soup in content.field_soup['#items'].getValue() %}
{{soup.value}}
{% endfor %}
This shows ONLY the first node. What am I missing here?
{% for soup in content.field_soup %}
{{soup.content}}
{% endfor %}
答案 0 :(得分:0)
选中此->>>
{如果key | first!='#'%},则为content.field_soup中项目的%}
{{item}}{%endfor%}