The Field Plugins Object
This is an object representing a field plugin.
Properties
Section titled “Properties”-
idnumberNumeric ID of your field plugin
-
namestringGiven name of your field plugin. Needs to be unique. A personal prefix is recommended (Example: my-geo-selector).
-
bodystringThe uncompiled JavaScript code of the field plugin.
-
compiled_bodystringUsed by the online code editor. Needs to be an empty string if using local plugin development.
-
space_idsnumber[]Array of space ids where the field plugin is assigned to.
-
optionsobject[]Options added to the plugin
Show child properties
-
namestringName of the option
-
valuestringDefault value of the option
-
-
last_versionsobject[]Array of last versions of the plugin
Show child properties
-
idnumberID of the version
-
eventstringEvent
-
created_atstringDate at which the version was created
-
author_idnumberID of the author
-
authorstringName of the author
-
item_idnumberPlugin ID
-
is_draftbooleanIf in draft
-
-
belongs_to_partnerbooleanIf the plugin belongs to a partner portal
-
belongs_to_orgbooleanIf the plugin belongs to an organization
-
userobjectThe user object
{ "field_type": { "id": 124, "name": "my-geo-selector", "body": "var Fieldtype = {}", "compiled_body": "", "space_ids": [], "options": [ { "name": "starts_with", "value": "" }, { "name": "maximum", "value": "" } ], "last_versions": [], "belongs_to_parnter" : false, "belongs_to_org": "false", "user" : {} }}Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community