how to extract parent component name from child component ? ex: i have composite component, component A has many child component, i need to extract component A name in the child component's html page with help of sightly.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
If you need to get parent node name then you can use below in sightly
${resource.parent.name}
Sample JS code here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/htl-getting-property-value...
You can work with java in the same way!
Hope this helps!
Thanks,
Kiran Vedantam.
Thanks Kiran. letme try this solution.
Hi,
If you need to get parent node name then you can use below in sightly
${resource.parent.name}
Thanks Arun! this helps lot.
Views
Likes
Replies