Highlighted

Nested Multifield

tahir1601

12-06-2019

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)

Replies

Arun_Patidar

MVP

12-06-2019

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.