Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Nested Multifield

tahir1601
Level 4
Level 4

Hey folks,

I am trying to fetch nested multifield using sling model. i am able to see the nodes created under content folder but in sightly i am not able to see it.

below is the code

<sly data-sly-list.head="${multiitems.parentmultifield.listChildren}">

${head.something}

----

<sly data-sly-list.subhead="${head.childmultifield.listChildren}">

${subhead.something}

</sly>

</sly>

I am able to fetch values of parent multifield(head.something), but having issue to see child multifield data in sightly(subhead.something)

2 Replies
Arun_Patidar
Community Advisor
Community Advisor

Could you please check if your method head.childmultifield (getChildmultifield) returns resource type? If nodes are getting saved then this is issue with logic which you have written in Sling Model or Sightly.

tahir1601
Level 4
Level 4

my sling model is as below

@Inject

@Optional

public Resource parentmultifield,childmultifield;