jekyll-strapi icon indicating copy to clipboard operation
jekyll-strapi copied to clipboard

Populate Media and Dynamiczones from Components

Open paulkitt opened this issue 2 years ago • 3 comments

Is there a possibility to configure the populate option to fetch also media files inside a component? With the default * option they are excluded and according to the docs there is more complex configuration of the populate var needed.

While browsing the code I saw the test env is using the Populate Deep strapi plugin solving this problem.

Is there any way configuring the jekyll-strapi plugin for fetching everything or is the Populate Deep plugin the only soluation atm?

paulkitt avatar Sep 22 '22 12:09 paulkitt

Hello @paulkitt - do you have somewhere Strapi site working (or config to replicate) so we could check locally? If I understand - regular media fetching / proxying is not enough?

bluszcz avatar Sep 22 '22 12:09 bluszcz

Hey @bluszcz thanks for you fast reply. I just setup a strapi repo with database showing the issue.

  • Querry the hole single type collection but no media is displayed http http://localhost:1337/api/test-page/\?populate\=%2A
  • Querry with explicit populate param for the content component http http://localhost:1337/api/test-page/\?populate\[content\]\[populate\]\=%2A
  • Querry with explicit populate param for the head component http http://localhost:1337/api/test-page/\?populate\[head\]\[populate\]\=%2A

paulkitt avatar Sep 23 '22 09:09 paulkitt

Hello, this plugin supports populate deep parameter. I see that you created #33 - does it mean that it works for you now and can be closed and we ca investigate #33? :)

bluszcz avatar Nov 02 '22 14:11 bluszcz