I want to create a custom data type which can hold multiple fields in content fragment | Community
Skip to main content
gpujari
March 24, 2020
Solved

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

  • March 24, 2020
  • 1 reply
  • 671 views

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?

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 vanegi

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-models.html. 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-models.html#defining-your-content-fragment-model].

 

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

1 reply

vanegi
Adobe Employee
vanegiAdobe EmployeeAccepted solution
Adobe Employee
July 14, 2020

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-models.html. 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-models.html#defining-your-content-fragment-model].

 

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