'Strapi CMS third level populating
I have a problem with fetching third level data from Strapi CMS.
My Structure is the following:
Page > Content(Dynamic Zone) > Multiple Entitys e.g. HeroSliderElement.
So Calling this URL from Postman:
{{protocol}}://{{host}}:{{port}}/api/pages?populate[Content][populate]=*
But since inside my HeroSliderElement are images i have the problem, that i dont get these back.
There should be the media data linked from the CMS:
Does anyone have an Idea how to fix this? Any help is appreciated!
I am currently using the following versions of packages:
"dependencies": {
"@strapi/plugin-i18n": "4.0.7",
"@strapi/plugin-users-permissions": "4.0.7",
"@strapi/provider-upload-aws-s3": "^4.1.0",
"@strapi/strapi": "4.0.7",
"pg": "8.6.0",
"strapi-provider-upload-aws-s3": "^3.6.8"
},
Solution 1:[1]
In case you're still looking for a solution, refer to answer here - Strapi V4 populate dynamic zones media not populating
Solution 2:[2]
you need to specify every record(object, entity) at level three to fetch data from it. like as you said you want to fetch data of images from content from your this will work
{{protocol}}://{{host}}:{{port}}/api/pages?populate[Content][populate]=images
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rodrigo Rubio |
| Solution 2 | Bilal Khursheed |

