In the admin the component draws the input field, registered with fieldRegistry.add() under a name. In the template this name appears as type. On the website a property resolver reads the stored value. Check the name first against Sulu’s field types: a duplicate registration throws the error “has already been used for another field”.
Glossary Term
Field type
The kind of an input field, for example text_line or smart_content. It consists of a React component and usually a property resolver.
Chapters with this term
- 5.13Tests for templates and Twig Applies to: Template of the example website
- 5.16From Sulu 2 to Sulu 3