datocms-plugin-nextjs-multilang-preview
v0.1.6
Published
Plugin that provides links to preview content in Next.js for use in multilingual datoCMS projects.
Downloads
8
Maintainers
Readme
Next.js Preview Links for multilingual DatoCMS Projects
This is a forked version of Next.js Preview Links. This plugin is used for multilingual datoCMS projects.
Here the original readme:
About
Plugin that adds quick links to preview & view your DatoCMS on a Next.js site. Assumes you have a preview implementation based off of the official Next.js Preview Mode guide.
Configuration
After installing the plugin, you'll need to configure the plugin settings like so:
Then you can add it to a field in your model, for example the "slug" field. Select the "slug" field, switch to "Presentation" and select the field add-on. You have to set an entity path, you can sub in any field on the entity using the $field_name, e.g. /blog/$slug or /product/$id.
Preview
Instead of showing up in the datoCMS sidebar (like the original next.js preview links plugin) this plugin is a "field addon" and is visible in the content editor.
This is a forked version of Next.js Preview Links - a sidebar plugin for datoCMS.