Andy-set-studio / hylia

Hylia is a lightweight Eleventy starter kit to help you to create your own blog or personal website.
https://hylia.website
MIT License
905 stars 230 forks source link

Provide example of using fieldsMetaData in cms preview #137

Open equivalentideas opened 4 years ago

equivalentideas commented 4 years ago

With the abstraction of in https://github.com/hankchizljaw/hylia/blob/master/src/admin/previews.js I'm finding it hard to understand how to access fields (to render data from a relational widget in a preview) like this https://www.netlifycms.org/docs/customization/#accessing-metadata . I expect others are stumbling on this as well.

Is there an example you could share here for starters @hankchizljaw to see how we might be able to make this data accessible as users adapt the previews?

Thanks as always :heart: