Hi @ricky99999
You can achieve your use case in the below ways:
- use query builder API to get the properties you want
- use page or node API and getting the value map of the resource
and finally write them into an excel file in java
Query builder sample query:
path=/content/we-retail
type=cq:Page
path=/content/we-retail
type=cq:Page
group.1_property=jcr:content/cq:productMaster
group.1_property.value=
/var/commerce/products/we-retail/wo/pants/faba_running_pants
group.2_property=jcr:content/cq:template
group.2_property.value=
/conf/we-retail/settings/wcm/templates/product-page
p.limit=-1
Node or Page API:
Once you get the page resource, iterate it and adapt it to Node or Page API
final resourceresolver resolver = request.getresourceresolver();
final resource res = resolver.getresource(page_path);
Page:
final page requestedpage =res.adaptto(page.class);
Node:
final Node requestedNode =res.adaptto(node.class);
Hope it helps!
Thanks,
Kiran Vedantam