To summarize what we’ve done so far:
- In part 1, we created a new plugin and learned how to inject a custom editor in the ICN configuration
- In part 2, we wrote our custom editor
- In part 3, we wrote our custom widget
We will now deploy the plugin and use our custom editor in an entry template. Then we will add a new document using this entry template, and we should see our custom editor in used.
Deploy the plugin
Connect to ICN as an admin and go to the plugin section. Add a new plugin and use the bin folder or your project as plugin folder and set your plugin Java class. If like me, you’re running ICN on a VM, you can connect your workspace folder to your VM (shared folder if you’re using VirtualBox), that will make development easier than always packaging the plugin jar,copying it and reloading it.
Then click the Save and Close button and reload ICN to load your plugin and inject your editor.
Use the editor in an Entry Template
Open the Entry Template Manager (you might need to enable the feature in the admin desktop), then edit a template:
Then save everything, reload the page to make sure you see your changes, and create a new document by using then entry template you updated. You should see your custom editor being used. So far nothing crazy, this is quite useless since a TextBox editor already exists, but we have everything ready to build great custom editors from now on 🙂
We are done for the basics, next parts will be about building a fancier editor, and adding some optional settings to our editor.