I'm trying to integrate custom Hugo shortcodes in Netlify CMS, one of which includes an image coupled with text. Each post's images are stored in the "medias" sub folder, as such :
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi !
I'm trying to integrate custom Hugo shortcodes in Netlify CMS, one of which includes an image coupled with text. Each post's images are stored in the "medias" sub folder, as such :
There's a main image field in hugo's frontmatter for the main image, for which was set
media_folder: "medias"
-> works at intended :The images in the
medias
subfolder are found.Describe the bug
My custom block component is set up as follows :
Most of it works, except the
media_folder
option for the image field :Here, the image that should appear is
find-my-alex.png
, in themedias
subfolderThe
choose_url
option wasn't ignored as it can be seen on this screenshot, so I guess there is a bug ? Or is there something else going on here ?To Reproduce Create custom editor component including image component with the
media_folder
optionExpected behavior Images in the folder given in the
media_folder
option show upApplicable Versions:
CMS configuration