Custom Content Fragment Datatype Issue | Community
Skip to main content
Level 2
June 20, 2023
Solved

Custom Content Fragment Datatype Issue

  • June 20, 2023
  • 2 replies
  • 924 views

I am trying to create a custom datatype for colorpicker within the Content fragment model for which I followed the steps mentioned in the blog below - 

 

https://blogs.perficient.com/2020/10/20/adding-a-color-picker-to-the-aem-content-fragment-model-editor/

 

Colorpicker datatype shows up in the list now , but the properties show up blank hence unable to save the model

 

Some of the errors see in the logs are as follows - 

20.06.2023 14:21:40.263 *ERROR* [[0:0:0:0:0:0:0:1] [1687285300196] GET /mnt/overlay/dam/cfm/models/editor/content/editor.html/conf/demo/settings/dam/cfm/models/test HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource TypeOverwritingResourceWrapper, type=dam/cfm/models/editor/components/datatypeproperties/translatablefield, path=/mnt/overlay/dam/cfm/models/editor/content/editor/jcr:content/body/items/wizard/items/editorStep/items/content/items/{{field_id}}, resource=[TypeOverwritingResourceWrapper, type=dam/cfm/models/editor/components/datatypes/field

 

GET /mnt/overlay/dam/cfm/models/editor/content/editor.html/conf/demo/settings/dam/cfm/models/test HTTP/1.1] com.adobe.cq.dam.cfm.ui.impl.extras.DataTypeConfigImpl Provided meta type color-picker is not recognized as a valid type in the configuration resource /mnt/overlay/settings/dam/cfm/models/formbuilderconfig/datatypes.

 

Please suggest any additional configurations that may be required.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sonalik30429345

The issue is resolved now. Thanks for your quick response.

 

An additional property of fieldMetaTypes is required in the datatypes for color-picker that has been missed in the above document.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 20, 2023

The error below suggests that the overlay is not properly done, I saw that in the source you posted there is a package available, did you try with that sample? Please check on which version of AEM the example was run on and make sure the nodes structure is the same in your AEM version

 

meta type color-picker is not recognized as a valid type in the configuration resource /mnt/overlay/settings/dam/cfm/models/formbuilderconfig/datatypes.

 

 

Esteban Bustamante
sonalik30429345AuthorAccepted solution
Level 2
June 20, 2023

The issue is resolved now. Thanks for your quick response.

 

An additional property of fieldMetaTypes is required in the datatypes for color-picker that has been missed in the above document.