Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

I want to create a custom data type which can hold multiple fields in content fragment

Avatar

Level 1

Hi,

I have a requirement that in the content fragment, I have field which have multiple fields.

One of that field is multifield but having custom data type having multiple fields with different data types

for ex. I want to create a content fragment which includes

title(single line text), description(multi line text),

and one field need to have multifield with a different datatypes

       1, Boolean

       2. Number

       3. Range

 

Can we do that in content fragment and how?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @gpujari ,

Yes, you can achieve this by using Content Fragment Models. See https://docs.adobe.com/content/help/en/experience-manager-65/assets/fragments/content-fragments-mode.... You can create a custom content fragment model having the following 

- title(single line text)

- description(multi line text), and many more.

And then create a content fragment using this CFM. [https://docs.adobe.com/content/help/en/experience-manager-65/assets/fragments/content-fragments-mode...].

 

To enable content fragment models you need to:
  • Enable the use of content fragment models in the configuration manager
  • Apply the configuration to your Assets folder

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi @gpujari ,

Yes, you can achieve this by using Content Fragment Models. See https://docs.adobe.com/content/help/en/experience-manager-65/assets/fragments/content-fragments-mode.... You can create a custom content fragment model having the following 

- title(single line text)

- description(multi line text), and many more.

And then create a content fragment using this CFM. [https://docs.adobe.com/content/help/en/experience-manager-65/assets/fragments/content-fragments-mode...].

 

To enable content fragment models you need to:
  • Enable the use of content fragment models in the configuration manager
  • Apply the configuration to your Assets folder