🎈 Welcome to the Marketplace — Explore and discover the ecosystem around DatoCMS, and share your own work with the community!

Next.js Multilang Preview Links

Plugin that provides links to preview content in Next.js for use in multilingual datoCMS projects.

This is a Community Plugin! Learn how create your own plugin, or copy and remix existing ones in our documentation

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.

Subscribe to our newsletter! 📥
One update per month. All the latest news and sneak peeks directly in your inbox.
support@datocms.com ©2024 Dato srl, all rights reserved P.IVA 06969620480