Multifield in content fragment | Community
Skip to main content
Level 2
May 11, 2021

Multifield in content fragment

  • May 11, 2021
  • 2 replies
  • 6227 views

Hello,

 

I am using aem 6.5

My requirement is to add multifield in content fragment.

Eg. { 

   Title: kiran,

   desc: test desc,

   Products: [

{

       name: abcd

       Url: google.com

      Location: USA

}]

}

So for this product I need multifield which I can drag drop from content fragment.

I tried link which was provided in other qu i.e. http://experience-aem.blogspot.com/2018/10/aem-6420-assets-content-fragments-coral-3-composite-multifield.html?m=1

But this is more of static where fields are already provided in code. I m looking for fields ie. Name, url, location can also be shared by me.

 Anything like this is possible or any suitable solution which can hp me to bring this json in content fragment.

 

Pls help.

 

 

 

 

 

 

 

 

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

2 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 11, 2021

Hi @kiranchonkar  Multifield is not a thing for CF because Content Fragment is what you see on publish side whereas multifield is generally used by authors to input data, there is another thread for similar discussion you can refer

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multifield-in-content-fragment-model/qaq-p/246514

 

Level 2
May 11, 2021

The link which you shared, I already refered it and it is not working with aem 6.5

 

 

Varun_Shakya
Community Advisor
Community Advisor
May 11, 2021
  • Create a component with multifield first according to the requirement.
  • Then include that multifield in content fragment model dialog using sling:resourcetype (granite/ui/components/foundation/include).
  • And in path property give the path of multifield created in above component. This will include that multifield in your content fragment model.
Level 2
May 11, 2021

Can you provide ss for better understanding.

Also in this case key value will b fixed then, I am looking for dynamic key values so that this service can be used for any combination.

 

Varun_Shakya
Community Advisor
Community Advisor
May 11, 2021

Including in CFM dialog

 

 

COmponent with multifield