Change rootPath of the pathbrowser depending on the context where the component is added
Have requirement: when component with pathfield in the dialog is dropped on site A, the pathfield rootPath should become /path/to/site/A
When the same component is dropped on site B, the pathfield rootPath should become /path/to/site/B
How would one achieve this in AEM with minimalistic amount of changes?
Regards,
Peter

