Reputation: 75
Already had a look at this other question, but it didn't seem to work for me.
So in the video (referenced below) at 9:58, he gets the Menu but the Section DOES NOT HAVE LINKS. Is there a way to populate them from the Menu?
I was watching this video from Strapi on Youtube in which he creates a Menu. The Menu has the following components:
Also, a Dropdown has a one-to-many relation with Section, which contains multiple Link components.
Something like this:
Thanks.
Upvotes: 0
Views: 8448
Reputation: 1
You can grab a list or an object along with its fields related to other objects or lists.
Example, imagine the following structure:
Events { Title Desc Organizer { Name, Photo } }
http://yourserver/api/events?populate[Organizer][populate][0]=Photo
You will return the list of events with your organizers and inside each organizer you will have the Photo included. You can populate as many relationships or media fields as the api allows.
Upvotes: 0