How to iterate multifield values from resource path need to modify and adding some more properties ?

keshav_goud

16-08-2020

Hi ,

 I have a Requirement like need to modify multifield values from resource path from node and also add some more properties to the multifield which are not authoring in dialog but need to add some properties in HTML using the existing properties from dialog.

 

   In this process i was gone through 

        https://www.aemquickstart.in/2019/07/nested-multifield-coral-3-with-sling.html

  Here, they are using two slingmodels first one is to render the resource and other is bean class this is the exact requirement i have but two classes for single component the classes count will double. Suppose i have 10 components with 20 sligmodels cant i use single class for modification and adding values to that list<Resource>.

Please provide me any snippet on this .

 

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

17-08-2020

hi,

The class count is depends, if you have a 10 types of multifield then yes, you need 10 bean classes but if bean class/model are common e.g. link model then you can use same model to adapt.

Answers (0)