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

Groovy to find common list of pages in all locale

Avatar

Level 5

I want to use groovy script to find out the list of pages that exists in all locale. Suppose page A exists under /en, then I need to validate if it exists under all other sites as well (fr, ko,etc). Similary, if page B exists in /fr, then is it available in other locales or not. What would be the best approach considering each local have a lot of child and grandchild pages?

4 Replies

Avatar

Community Advisor

Can you please share more info: 

1. how frequently you need generate these kind of reports? 

2. do you have to run script every time for all the pages in one particular locale and check whether pages exist other locales or it's just one page and verify whether it is exists on other locales or not? etc..

Avatar

Level 9

Is the en is your master?

Or every locale have different page count other than en?

Can you also explain more on the comparison clearly?

Avatar

Level 5

yes en is the master.

Every local will have some pages common to en and some uncommon to en.

I need to find out common pages between en and other locales.