• Hi everybody,

    I’m struggling to create a simple field type for PODS that would automatically generate a read-only UUID v4 code.
    I cannot find updated documentation on how to develop custom field types, and the only ones I found online (address / google maps) do not seem compatible with the latest version of PODS.
    Can anyone point me to some updated resource or a boilerplate for a custom field type ?

    Thanks in advance,

    Carlo

Viewing 1 replies (of 1 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    The short answer here is that this would be difficult to do until we add some more functionality to Pods. I’ve got some initial code in Pods 2.8 that makes this sort of thing a little easier but it’s not yet tested for this use-case and I can’t really provide you direction how to accomplish this until I go and test the non-input side of things to see if there are caveats on how secure the value is from being manipulated.

    I’ll explore adding a new Pods Pro add-on for a UUID field type in the future that utilizes the https://github.com/ramsey/uuid library which could provide the ability to choose from many different UUID versions for a specific need.

Viewing 1 replies (of 1 total)
  • The topic ‘Boilerplate for custom field type (UUID field type)’ is closed to new replies.