Nested M2A
How can i display the section.title in this example?
section.id is no problem, but with the title i stuck.
Sorry for this rookie-question π¦
5 Replies
That should work as far as I can tell, what does the console.log give you?
Can you show an example of a page object?
The console.log only include the IDs π¦
{
"v_isShallow": false,
"dep": {},
"v_isRef": true,
"_rawValue": [
{
"id": 1,
"slug": "Startseite",
"sections": [
{
"id": 10
},
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
},
{
"id": 5
},
{
"id": 6
},
{
"id": 7
},
{
"id": 8
},
{
"id": 9
}
]
},
{
"id": 2,
"slug": "Pressespiegel",
"sections": []
}
],
"_value": [
{
"id": 1,
"slug": "Startseite",
"sections": [
{
"id": 10
},
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
},
{
"id": 5
},
{
"id": 6
},
{
"id": 7
},
{
"id": 8
},
{
"id": 9
}
]
},
{
"id": 2,
"slug": "Pressespiegel",
"sections": []
}
]
}
And you're sure
title
actually exists in the data?
I.e. if you remove the fields
, does it work?Thank you @Reinier Kaper I've missed to read all the necessary items π¦ Now it works...