Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to iterate composite multi fields values

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Vasu542201 

 

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

 

Hope it helps!

Thanks,
Kiran Vedantam

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @Vasu542201 

 

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

 

Hope it helps!

Thanks,
Kiran Vedantam

Avatar

Community Advisor

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

@chidresource  

private List<ArticleDetails> articleDetails