Replace the brand name across brand webpage(13000+ pages) | Community
Skip to main content
Level 4
July 23, 2024
Solved

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

  • July 23, 2024
  • 5 replies
  • 1392 views

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

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

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.

5 replies

bhavigoyal
Level 4
July 23, 2024

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

rajat168Author
Level 4
July 23, 2024

use brand name default in comps level.

bhavigoyal
Level 4
July 23, 2024

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

Harwinder-singh
Community Advisor
Community Advisor
July 23, 2024

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

Hemalatha
Level 4
July 23, 2024

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

rajat168Author
Level 4
July 24, 2024

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

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 23, 2024

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
rajat168Author
Level 4
July 24, 2024

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

kautuk_sahni
Community Manager
Community Manager
July 23, 2024

@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