Hello, I want to replace or substitute a UE field with a React component through extensions.
The field is the one that says *Image which I want to replace.
In my extensions project I have the following code.
I've tried different data types like Image, image, media, and multi, but I haven't been able to replace that field.
Could you tell me which data type is right for it?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Ricardo,
To be able to provide an alternative field renderer in Universal Editor, the field "component" property in the "component-models.json" must match the "dataType" property in the "getRenderers" call. With the code above all field with "component": "image", "media" and "richtext" should get the alternative render.
What is the definition of your field in "component-models.json"?
Thanks.
Hi Ricardo,
To be able to provide an alternative field renderer in Universal Editor, the field "component" property in the "component-models.json" must match the "dataType" property in the "getRenderers" call. With the code above all field with "component": "image", "media" and "richtext" should get the alternative render.
What is the definition of your field in "component-models.json"?
Thanks.
we have a component-definition.json and we have this data
and in de model from aem is this:
Views
Like
Replies