Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Netlify CMS preview templates #206

Open
timwis opened this issue Nov 16, 2022 · 0 comments
Open

Add Netlify CMS preview templates #206

timwis opened this issue Nov 16, 2022 · 0 comments

Comments

@timwis
Copy link
Owner

timwis commented Nov 16, 2022

The default preview template in Netlify CMS just shows each field. It's not bad, but of course it would be nice if the preview resembled the page that JKAN will generate.

Screenshot 2022-11-16 at 08 17 10

Netlify CMS supports custom preview templates. They have to be React components, which is a bit annoying, but I don't expect it will be much effort, particularly since we can plug in the field renderers that Netlify CMS ships with (e.g. string renderer, boolean renderer, etc.).

It would be great if we could somehow pull in the actual dataset template in _layouts/dataset.html, though I expect if that's possible, it will be pretty hacky.

@timwis timwis added this to the Netlify CMS milestone Nov 16, 2022
@timwis timwis removed this from the Netlify CMS milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant