Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Hi,
Is there any way we can access child/grand child valuemap in sling model.
Ex. If my current resource is "/content/1/2"
And I would like to read property available at node "/content/1/2/x/y/5", and x, y values may vary.
I found DeepModifiableValueMapDecorator, will this help?
Thanks,
Raghava
Solved! Go to Solution.
you can inject self as reosurce and check other childs(grand childs) with java code using Resource API.
@Self
private Resource resource;
Resource (Apache Sling 8 API)
View solution in original post
Views
Likes
Replies