How to iterate composite multi fields values | Community
Skip to main content
New Participant
Feb 9, 2023 6:24 PM UTC
Solved

How to iterate composite multi fields values

Hi Team, 

Can please explain anyone how to iterate composite multi field values using sling models and fetch it page using slightly by data-sly-template

I am tried by using 

@chidresource  

private List<Resource> articledetails;

 

but it’s not working Please explain the process.

 

Thankyou.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
Feb 9, 2023 6:29 PM UTC

Hi @vasu542201 

 

Please check out my blog here: https://allaembykiran.wordpress.com/2021/01/13/nested-multi-field/

 

Hope it helps!

Thanks,
Kiran Vedantam

3 replies

Manu_Mathew_
New Participant
Feb 10, 2023 5:34 AM UTC

@vasu542201 You have to define your model class for articledetails and inject your multifield properties to ArticleDetails

@chidresource  

private List<ArticleDetails> articleDetails

Translate
arunpatidar
New Participant
Feb 9, 2023 7:59 PM UTC
Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
Feb 9, 2023 6:29 PM UTC

Hi @vasu542201 

 

Please check out my blog here: https://allaembykiran.wordpress.com/2021/01/13/nested-multi-field/

 

Hope it helps!

Thanks,
Kiran Vedantam

Translate