Я новый пользователь Twig / Yaml, и у меня проблемы с отображением элемента, находящегося внутри другого элемента. Поля, созданные в файле yaml, были:
_gd:
type: container.tabs
fields:
_gd_content:
label: Content
fields:
items:
type: collection.list
array: true
label: Items
fields:
.itemsobj:
type: collection.list
array: true
label: Items obj
fields:
.titleitemsobj:
Я не могу отобразить второй список в файле ветки. Я пробую что-то вроде этого:
{% for item in particle.items %}
{% for item in particle.itemsobj %}
{{ item[item.titleitemsobj2] }}
Но не работает.