Expand my Community achievements bar.

Nested Multifield

Avatar

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

Avatar

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.



Arun Patidar

Avatar

Level 4

my sling model is as below

@Inject

@Optional

public Resource parentmultifield,childmultifield;