Multifield in content fragment model | Community
Skip to main content
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 smacdonald2008

Correct - as discussed in the article - they are created on Author.  A component used in a content fragment can have a dialog - where you can use all grainte data types - including MF.

25 replies

New Participant
October 8, 2019

I am currently looking into the same thing. Basically, Content Fragments appear to be AEM's solution to Content Types for structured data, instead of for abstract information. However, sometimes this structured data gets really complicated.

I came across this article which seems like it may be on the right track. I'm going to give it a shot, but just wanted to add this to the thread since this is the first result for a lot of related queries on Google.

New Participant
July 17, 2019

Thanks for your reply. How can i create a multilist of class model inside student model. Currently, we can only add the available data types while defining a model (e.g. single line text, multi line text, number, etc). I am not able to find the option to add a custom data type/content model inside another model.

Sean-McK
New Participant
July 17, 2019

No,

We got super busy and kind of worked around this. A work around is make a content fragment model and then do a list and point to that content fragment.... for example if you wanted to have (and this is simple and part bad example) -- You have a Student that takes classes, instead of having a student model with a multifield for classes, you would have a class model and in student model you can have a multilist and point to each class.

As we request these types of things i think they will improve content fragments as well as experience fragments.

New Participant
July 10, 2019

Have you got any success find with using multipanel in Content Fragment models?

New Participant
January 11, 2019

Hi Sean, I am of the same opinion as yours. I was just letting you know the existing option (may be the only one that OOTB) now.

Actually expecting a reply from smacdonald2008​ / any other Adobe engineers on the option of multipanel (holding multiple datatypes).

I am also in bad need of this feature as there is a huge demand /requirement to use content fragment in my project.

Regards,

Anand MN

Sean-McK
New Participant
January 10, 2019

Anand,

I agree. I believe content fragments should just be a "dialog" box of data in the jcr (kind of is). Are you saying putting a delimiter in a text field and parse it when I pull it from the jcr? I think that will be a good solution, but I don't think it is an ultimate solution. I think the ultimate goal is to be able to have all kinds of content fragment types....Like above. I looked into creating a new type of field (like multi-field) in content fragments, but have not had the time to finish it.

Sean

New Participant
January 10, 2019

Scott, if the requirement is to have a generic content to be used by Different channels (I believe thats the whole point of Content fragment), then we should have provision to enter any kind of data.  In the above example of movie

"Deadpool 2"

2:20 - Atlanta

3:00 - New York

Say, what if the requirement is to Highlight the time part in a different color and City in a different color.

If there was a way to group the time and city and then have option to capture multiples of them, it would have been great.

Do you mean to say Content fragment shouldn't be used in this case??

Regards,

Anand MN

New Participant
January 10, 2019

You would be able puy the whole text  "2:20 - Atlanta" in a single line Text and then convert it into multified.

Content fragment models

Content Fragmet created.

smacdonald2008
New Participant
June 4, 2018

IN AEM development - data rendered in a component is typically on the component level - that is stored as props on the component.  

Sean-McK
New Participant
June 4, 2018

I get what you are saying, but the issue is that if I do that, then the data is on the "component" level. I want to put all this data in one place, like lets say in a dam with a content fragment. I don't want to create a "dummy" page with all the data and just reference it in the component. I should be able to add a content with an "array/arraylist" type of content. Maybe I will try to create a new component datatype