In this series of posts, we will learn how to develop and use a new attribute/property editor in your Entry Template layout.
This is not as easy as it first sounds, so I will split this tutorial in 6 parts.
Here is the summary of all parts, they should be taken in order.
- Part 1: Principle and configuration injection
- Part 2: Create the editor
- Part 3: Create the widget
- Part 4: Deploy and test
- Part 5: Add custom settings
- Part 6: Create a fancier widget and extra editor configuration
First part, how is it all connected
It’s good to start with some basic comprehension of how the editor mechanism works in ICN. The most important class is the ecm/model/configuration/ControlRegistry class
Everything starts with this class, this is the main registry storing the configuration of the editors. This consists of:
- The editors configuration: Label, class, options
- The mappings: types/cardinality to editor and free/choices/coumpound to editor
This is how looks this class:
Continue reading