Uuid

Free!
Download
Description

One of its kind; unlike anything else

This fieldtype auto-generates UUIDs for empty fields. This can be useful if you need unique, persistent IDs for each row in a Replicator, for example.

Example:

Fieldset

sections:
  type: replicator
  sets:
    section:
      fields:
        id:
          type: uuid
        fields:
          type: replicator
          sets:
            value:
              fields:
                id:
                  type: uuid

Output

sections:
  -
    type: section
    id: 026fd166-8638-4c21-9e38-730b4ab3d4ea
    fields:
      -
        type: value
        id: b07389fe-8760-4f81-8c35-50779bd43b61
  -
    type: section
    id: 4a7ce0b0-0483-42d9-a7b0-ce0201dd9c84
    fields:
      -
        type: value
        id: b07389fe-8760-4f81-8c35-50779bd43b61
      -
        type: value
        id: 5a7534a8-27bf-4ac6-8549-d3b429a61ff3

Important Links
Details
Released December 13, 2018
Updated 3 months ago
Version v1.2
Downloads 277
Requires Statamic 2

Series Eight

Award Winning Digital Product Studio Specialising in UX, UI Design, Branding & Front-End Development

More by Series Eight