Show/hide field value fields based on the associated field type model.
This plugin requires a DatoCMS API Key global variable so it can look up the FieldType record that is associated with a InformationField record. For simplicity, we also need to add a global FieldType model ID variable to enable that lookup. These variables are added on the plugin settings page.
Install all the project dependencies with:
yarn installAdd this plugin in development mode to one of your DatoCMS project with:
yarn addToProjectStart the local development server with:
yarn startThe plugin will be served from <http://localhost:5000/>. Insert this URL as the plugin Entry point URL.
Before publishing this plugin, make sure:
package.json following the official rules;cover.png) and a preview GIF (preview.gif) into the docs folder.When everything's ready, just run:
yarn publish