Create new field_type

czorny813 - 2 weeks ago

Hello, How create a new field_type? I' am run 'php artisan make:addon your_company.field_type.example' and what's next?

ryanthompson - 2 weeks ago

I hope I can make more docs on this soon but first step is probably defining your input view: https://github.com/anomalylabs/textarea-field_type/blob/2.1/src/TextareaFieldType.php#L27

And writing up your input UI. That field type is nice and simple so it's easy to follow - and really you just override core field type methods as you see fit: https://github.com/anomalylabs/streams-platform/blob/1.3/src/Addon/FieldType/FieldType.php

New docs are done and being fixed (formatting issues) and pushed to GitHub this weekend which will mean I can start writing them again and not wasting my time in the old doc system. Expect more soon but by all means ask here as well.