Adobe Employee
February 7, 2023
Hi @sean12341 ,
There are multiple ways to achieve it.
- You could use a JCR SQL2 query like below, using the policy name and executing in query editor of CRXDE
SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/conf/we-retail]) AND NAME() = 'policy_1526037253202'
This will give you the path "/conf/we- retail/settings/wcm/policies/weretail/components/content/teaser/policy_1526037253202" in the result.
2. Quite a manual approach, because if you look at the path there is a pattern
/conf/we-retail/settings/wcm/templates/section-page/policies/jcr:content/root/responsivegrid/weretail/components/content/teaser/policy_1526037253202
/conf/we-retail/settings/wcm/policies/weretail/components/content/teaser/policy_1526037253202
All you need to do is pick the partial path and append "/conf/we-retail/settings/wcm/policies" and you will always end up into the same directory.
Hope that helps!
Regards,
Nitesh

