Hi, Can we modify content fragment model and add fields to add custom component in the content fragment. | Community
Skip to main content
Level 2
August 30, 2023
Solved

Hi, Can we modify content fragment model and add fields to add custom component in the content fragment.

  • August 30, 2023
  • 1 reply
  • 656 views
No text available
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 EstebanBustamante

Hello,

 

The Content Fragment Model (CFM) can indeed be updated to include additional data types. However, it's important to note that the fields you can add are not equivalent to what are referred to as "components" in the AEM context. Any modifications made to the CFM will impact all existing Content Fragments, so exercise caution when making updates.

Out of the box, there are several data types available that you can utilize. You can explore them here: https://experienceleague.adobe.com/docs/experience-manager-65/assets/content-fragments/content-fragments-models.html?lang=en#data-types. Nonetheless, you also have the flexibility to customize and create your own data types. An example of how to achieve this can be found here: https://www.linkedin.com/pulse/custom-datatype-content-fragments-model-cfm-aem-generate-ankur-garg

 

 

Hope this helps

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
August 30, 2023

Hello,

 

The Content Fragment Model (CFM) can indeed be updated to include additional data types. However, it's important to note that the fields you can add are not equivalent to what are referred to as "components" in the AEM context. Any modifications made to the CFM will impact all existing Content Fragments, so exercise caution when making updates.

Out of the box, there are several data types available that you can utilize. You can explore them here: https://experienceleague.adobe.com/docs/experience-manager-65/assets/content-fragments/content-fragments-models.html?lang=en#data-types. Nonetheless, you also have the flexibility to customize and create your own data types. An example of how to achieve this can be found here: https://www.linkedin.com/pulse/custom-datatype-content-fragments-model-cfm-aem-generate-ankur-garg

 

 

Hope this helps

Esteban Bustamante