Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

DatoCMS plugin that provides a stable UUID automatically

Notifications You must be signed in to change notification settings

novemberfiveco/datocms-plugin-nanoid

Repository files navigation

Deprecated

This plugin is deprecated since DatoCMS now has stable ID's. After a migration the record / item types / modular blocks all keep their original ID. There is no need for this plugin anymore. For more information read the announcement

Nano ID DatoCMS Plugin

Created by November Five

Plugin that adds nanoid's to any field automatically. This allows to have unique references to a model across migrations. The editor doesn't have to do anything as the uuid field is hidden and automatically filled in with a random nanoid using the nanoid.

Configuration

After installing the plugin, you'll need to configure the plugin settings:

Configuration screenshot

You can specify the api_key of the field that will be automatically converted to a hidden "nanoid" field. A good name is nanoid, then add a single line string field to a model and call it nanoid.

The hide field option by default is turned on, if you turn it off the field is displayed and you can regenerate the id.

Field

Development

If you want to develop on this extension, the quickest way is to run yarn start and manually install it by going to Settings > Plugins, clicking the add button, and clicking "create a private one" in the lower right. Give it:

  • A name of your choosing
  • An entry point URL of http://localhost:3000

About

DatoCMS plugin that provides a stable UUID automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published