-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
What's the best method to iterate over referenced content objects? This is a single page marketing lander, so it's not a "blogging" use case.
I have a "client testimonial" section (id: clientSection) that has the following:
- Headline (single item)
- Body (single item)
- Reference field (multi-item) that points to a "testimonial" content type that has a couple of text fields and an image reference
I'm doing contentful.clientSection[0].headline and contentful.clientSection[0].body for the first two, and I tried doing:
each testimonial in contentful.clientSection[0].testimonials
p= testimonial.testimonial
p= testimonial.attribution
but because the testimonials are references, not directly in the clientSection object, it's not working.
Is there a way to follow reference links?
Metadata
Metadata
Assignees
Labels
No labels