Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

how to exract parrent component name from child component ?

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

If you need to get parent node name then you can use below in sightly

${resource.parent.name}


Arun Patidar

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @karthick1356 

 

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.

Avatar

Correct answer by
Community Advisor

Hi,

If you need to get parent node name then you can use below in sightly

${resource.parent.name}


Arun Patidar