I’m in a pretty strange situation.
the url /api/home-page?populate=* doesn’t return my image field
but /api/home-page?populate=heroImage does
On the other side I have another single page very similar where populate=* and populate=heroImage are both working fine.
What can explain that problem?
Below the two schema.json
home-page :
{
"kind": "singleType",
"collectionName": "home_pages",
"info": {
"singularName": "home-page",
"pluralName": "home-pages",
"displayName": "Page d'accueil",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"seo": {
"type": "component",
"repeatable": false,
"component": "shared.seo"
},
"heroImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": ["images"]
},
"img": {
"allowedTypes": ["images"],
"type": "media",
"multiple": false
}
}
}
the other page :
{
"kind": "singleType",
"collectionName": "ou_trouver_bonuxes",
"info": {
"singularName": "ou-trouver-bonux",
"pluralName": "ou-trouver-bonuxes",
"displayName": "Où trouver Bonux"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"heroImage": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}