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)
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
my sling model is as below
@Inject
@Optional
public Resource parentmultifield,childmultifield;
Views
Replies
Total Likes