Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Groovy to find common list of pages in all locale

Avatar

Level 6

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

Community Advisor

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 6

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.