0.0.2 • Published 4 years ago

netlify-cms-widget-uuidv1 v0.0.2

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

Netlify CMS ID Widget

Instructions:

1) Install the widget:

npm i netlify-cms-widget-uuidv1

2) Import the widget in your main netlify cms file:

import idWidget from 'netlify-cms-widget-uuidv1';

3) Register the widget like this:

CMS.registerWidget('id', idWidget.Control, idWidget.Preview);

4) Add the id field to your collection like this (the collection here is just an example):

collections:
  - name: "post"
    label: "Post"
    folder: "post"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "ID", name: "id", widget: "id"}

Enjoy!

0.0.2

4 years ago

0.0.1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago