## Groovy Script

arvind

Total Posts

18

Likes

2

0

arvind

Total Posts

18

Likes

2

0
arvind

22-10-2020

Hi Team,

We have come across following requirement:

1) We have two sites siteA and siteB.

2) in siteB, at compoent level and page level, we have many references of siteA pages.

3) Now we need to correct references i.e. replace any node property in siteB which has value like /content/siteA to /content/siteB .

In order to achieve above requirement, we thought to use groovy script.

• Traverse all nodes (all nodes, not only jcr:content nodes) under any given path
• and check each property value if it has /content/siteA, replace it with /content/siteB.

Regards,

Ap

Shashi_Mulugu

MVP

Total Posts

248

Likes

182

61

Shashi_Mulugu

MVP

Total Posts

248

Likes

182