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!!
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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:
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.
Make a config and change or use Brand name default in component level?
use brand name default in comps level.
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
no, we have brandname as 'mysamplebrand' across all pages(13k) (live site). this should get replaced. the content or word 'mysamplebrand' should get replaced.
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
Hi @Hemalatha , thanks much for your help, this will help me on further investigation.
Views
Replies
Total Likes
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:
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.
Hi @EstebanBustamante , thanks much for your help, this will help me on further investigation.
Hi @EstebanBustamante , could you please confirm, can use this groovy script on AEMasCS?
Views
Replies
Total Likes
@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!
Views
Replies
Total Likes
Views
Likes
Replies