Greetings,
Is there any way to obtain a list (JSON) of all launch pages in AEM? I've tried using querybuilder to filter along the path of /content/launches and filter by type=cq:Page, but that yields many duplicate pages that don't actually exist. I'm wondering if AEM has a built-in tool that automatically does this (as http://localhost:4502/libs/launches/content/launches.html provides an accurate list of all launches, but does not have a JSON I can parse).
Any help would be appreciated, thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
@Trea1 You can filter by like below and process the query results and print it in json. But the tricky part is the path you need to pass the path for every day since the folder created based on year/month/day.
property=sling:resourceType
property.value=wcm/launches/components/launch
path=/content/launches
@Trea1 why do you want is as json? What are you trying to build? So that we can see if we can do some alternative...
Views
Replies
Total Likes
@Shashi_Mulugu I'm trying to create a python script that compares launches between two given points in time. Each day, the goal is to download a JSON to store in an offline database. We want to be able to go that database, pick two JSON files for any random day, then loads that data into the script so it can compare them (points out any new ones created between those two days and provides the URL to them, along with pointing out if the last modified date on any of our launches was updated).
Views
Replies
Total Likes
@Trea1 You can filter by like below and process the query results and print it in json. But the tricky part is the path you need to pass the path for every day since the folder created based on year/month/day.
property=sling:resourceType
property.value=wcm/launches/components/launch
path=/content/launches
Views
Likes
Replies
Views
Likes
Replies