How to access nested properties?
Hello,
I have the following nested properties in one of my pages:

I'm unable to access these properties with HTL:

Any info on this will be great.
Thanks...
Hello,
I have the following nested properties in one of my pages:

I'm unable to access these properties with HTL:

Any info on this will be great.
Thanks...
Hi Akash,
You could get children of carouselImages in a list using Sling model or WcmUse Api like this:
private java.util.List<Resource> list;
final Resource resource = request.getResource();
Resource childResource = resource.getChild("links");
Iterator<Resource> resources = resource.listChildren();
while (resources.hasNext()) {
list.add(resources.next());
}
And, then using that model in sighly using
<sly data-sly-use.model="org.sample.Model"></sly>
<sly data-sly-list=${model.list}>
{item.<property-name>}
</sly>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.