0.1.6 • Published 4 years ago

datocms-plugin-nextjs-multilang-preview v0.1.6

Weekly downloads
34
License
ISC
Repository
-
Last release
4 years ago

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:

Configuration screenshot

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.

Preview screenshot

This is a forked version of Next.js Preview Links - a sidebar plugin for datoCMS.