Jcr sql 2 query get results of containing page along with searched asset(s) metadata
In acs commons we have reference report which will output the path and containing page of the given asset path or all the assets in the given folder path.
Now we have a scenario to write a query to render the containing page as well the asset details
Example: path to be searched - /content/dam/we-retail/us/abc
We need the following deatils in output as
/content/dam/we-retail/us/abc/1.png and its asset metadata along with containing page
/content/we-retail/us/en/men
/content/dam/we-retail/us/abc/2.png and its asset metadata along with containing page
/content/we-retail/us/en/women...