Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Search for three most recent modified pages from a location [say /content/test] and populate three components which just have a pathfield in it.

askdctm
Level 9
Level 9

Hi All,

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.

4 Replies
smacdonald2008
Level 10
Level 10

you want th result set to show up in three components? Where are the three compoents located? Also, where do you invoke the query from?

Tuhin_Ghosh
Level 7
Level 7

Hi,

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. 

Thanks

Tuhin

askdctm
Level 9
Level 9

Hi Scott,

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.