0.0.9 • Published 6 years ago
netlify-cms-widget-uuid v0.0.9
netlify-cms-widget-uuid
A widget for netlify-cms that automates the creation of a uuid.
Install
As an npm package:
npm install --save netlify-cms-widget-uuidimport { UuidControl, UuidPreview } from 'netlify-cms-widget-uuid'
CMS.registerWidget('uuid', UuidControl, UuidPreview)In the browser:
<script src="https://unpkg.com/netlify-cms-widget-uuid@0.0.9/dist/netlify-cms-widget-uuid.js"></script>
<script type="text/javascript">
CMS.registerWidget('uuid', NetlifyCmsWidgetUuid.UuidControl, NetlifyCmsWidgetUuid.UuidPreview);
</script>How to use
Add to your Netlify CMS configuration:
fields:
- { name: <fieldname>, label: <fieldlabel>, widget: uuid }Support
For help with this widget, open an issue.