April 1, 2020
Estimated Post Reading Time ~

How to Generate a List of All Web Pages

NOTE: Credit for this goes to my colleague Ashwini Verma

http://host:4502/bin/querybuilder.json?path=/content&type=cq%3aPage&p.limit=-1

This will return a JSON document of all web pages. Example snippet below:

{
    “path”: “/content/catalogs/geometrixx-outdoors/ga/base-
catalog/seasonal/winter/apparel”,    “excerpt”: “”,    “name”: “apparel”,    “title”: “Winter Apparel”,    “lastModified”: “2015-01-26 09:44:48”,    “created”: “2016-06-13 17:09:26”
}

Modify the value for path as follows to get the complete URL:

http://host:4502/content/catalogs/geometrixx-outdoors/ga/base-catalog/seasonal/winter/apparel.html


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.