fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
162 stars 14 forks source link

[Bug] 'Image' and 'File' Buttons Fail on Top Level of Panel #50

Closed luxlogica closed 5 years ago

luxlogica commented 5 years ago

The image and file buttons work fine inside a Page - e.g., the Home Page. But if the field is placed somewhere at the top level of the panel - ie., when the field is being used inside the 'site.yml' blueprint - then these buttons don't work, and the user gets an error message:

screen shot 2019-01-12 at 11 28 12 am

I guess the queries that are being used are page.images and page.files. When we're trying to get images and files at the top-level, outside any pages, I guess they have to be site.images and site.files.