1] I am able to somehow handle scenario #1[i.e, search for recent modified pages in a given location]
2] However, I am not sure how to populate the pages returned into three separate components[which just have a path field in it]
Any thoughts/pointers on this will be helpful.
This should be a straight forward solution. Just write a scheduler or service based on your bussiness requirement. Then fire the query, get the pages and modify/populate components using JCR API.
You can create a service/component which will query JCR for Last modified pages (Via JCR API, Query manager API etc).
You can use this result in modifying/Adding Default value to component dialog pathfield.
Reference article for Querying:-
Reference article to fill default values:
I hope this would be of some use to you.
Thanks and Regards
Thank you for your reply.
Based on the path selected in the components pathfield, we are taking querybuilder approach to get the results.
Yes, there should be three similar components[each one with just pathfiled in it] on the page and the pages returned should get populated in the pathfield of these three components.