Groovy to find common list of pages in all locale | Community
Skip to main content
Level 6
January 5, 2023

Groovy to find common list of pages in all locale

  • January 5, 2023
  • 2 replies
  • 1076 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Siva_Sogalapalli
Community Advisor
Community Advisor
January 5, 2023

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..

Level 6
January 5, 2023

I need to check all the pages under all the locale.

Mani_kumar_
Community Advisor
Community Advisor
January 5, 2023

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?

Level 6
January 6, 2023

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.