Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Replace the brand name across brand webpage(13000+ pages)

Avatar

Level 5

Hi Team,

     we are on AEMasCS, we want to replace our brand name on the aem sites pages(content) which was 13000+ pages, the page also contain urls with brandname which should not get replaced. 

 

for example, we have brand name called 'mysamplebrand' on the 13k pages, which have to be replaced as 'mynewsamplebrand' across 13k content pages. these pages also contains url like <a href ='www.mysamplebrand.com/content/dam/mysamplebrand/en/us/logo.png' </a>(this should not be get replaced on the pages) only visible content should be get replaced.

 

kindly suggest the way of approach to be replaced and its impact.

 

thanks in advance!!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi, 

You need to identify "from where" and "how" this "mysamplebrand" is exposed in your content. From there, you may need to take different approaches. For example:

  • If this is part of a custom component, you should update the component content or configuration.
  • If this is part of a configuration, update that specific configuration.
  • If this comes from a Rich Text Editor (RTE), update the text property in that node.
  • If this comes from an Experience Fragment (XF), simply update the XF.
  • If this comes from a Content Fragment (CF), update that reference.
  • And so forth.

Most likely, you will need to run a script to update all instances at once. For this scenario, you could explore:

-  Using a groovy script: https://aemgeeks.com/aem-tools/use-groovy-script-in-aem/

- Use the AEM Modernizer Tools: https://opensource.adobe.com/aem-modernize-tools/pages/component/about.html#rewrite-properties 

- Build your own script. 

Hope this helps.



Esteban Bustamante

View solution in original post

11 Replies

Avatar

Level 4

Make a config and change or use Brand name default in component level?

Avatar

Level 4

Means use mynewsamplebrand as default brand name in title component and apply it to whole site
Or you can change title of the root page that is your project name so that its reflected to all place

Avatar

Level 5

no, we have brandname as 'mysamplebrand' across all pages(13k) (live site). this should get replaced. the content or word 'mysamplebrand' should get replaced.

Avatar

Community Advisor

@rajat168 If this is a content change, the best way out would be a groovy script that updates the content page properties, component content.

Avatar

Level 5

Hi @rajat168,

 

Since the content involved here is large, you can check on writing custom groovy script or backend code which can make use of web scraping tools which will exclude href links but will gather the content which needs to be changed and you can update the same. Consider taking a backup before you perform this activity as a rollback mechanism. You can also consider splitting this pages in batches and run in it on author and replicate the changes back to publisher considering the performance impact. Hope this helps.

 

Regards,

Hemalatha C

Avatar

Level 5

Hi @Hemalatha , thanks much for your help, this will help me on further investigation.

Avatar

Correct answer by
Community Advisor

Hi, 

You need to identify "from where" and "how" this "mysamplebrand" is exposed in your content. From there, you may need to take different approaches. For example:

  • If this is part of a custom component, you should update the component content or configuration.
  • If this is part of a configuration, update that specific configuration.
  • If this comes from a Rich Text Editor (RTE), update the text property in that node.
  • If this comes from an Experience Fragment (XF), simply update the XF.
  • If this comes from a Content Fragment (CF), update that reference.
  • And so forth.

Most likely, you will need to run a script to update all instances at once. For this scenario, you could explore:

-  Using a groovy script: https://aemgeeks.com/aem-tools/use-groovy-script-in-aem/

- Use the AEM Modernizer Tools: https://opensource.adobe.com/aem-modernize-tools/pages/component/about.html#rewrite-properties 

- Build your own script. 

Hope this helps.



Esteban Bustamante

Avatar

Level 5

Hi @EstebanBustamante , thanks much for your help, this will help me on further investigation.

Avatar

Level 5

Hi @EstebanBustamante , could you please confirm, can use this groovy script on AEMasCS?

Avatar

Administrator

@rajat168 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni