troubleshooting Question

How do I modify this code on all the webpages at once?

Avatar of Luiza1
Luiza1 asked on
Web DevelopmentWeb Development SoftwareScripting Languages
18 Comments1 Solution299 ViewsLast Modified:
I want to apply new templates on existing pages that have other templates. I was considering to use a global find and replace to change the source code on all the pages before applying the new templates, do you think that will work? Here below I show you the code that has the biggest modification in the new template. Somehow I have to adjust this code before applying the new template. Could you tell me how?
 

Here is the problem to solve. I have currenly this piece of code on all the pages :
 
<!-- InstanceBeginEditable name="Latest update" -->
  <div id="legend">
   <p style='float:right'>Last update: 16-11-2007</p>
      <p>&copy; 2006 - BUDG/A/1</p>
  </div>
 <!-- InstanceEndEditable -->
 
Now I have to transform this code on all the pages into this (while keeping the variable code unchanged for each page, like last update and copyright year):
 
<div id="legend">
  <div id="copyright">&copy;&nbsp;<!-- TemplateBeginEditable name="Copyright year" -->2006 - BUDG/A/1<!-- TemplateEndEditable --></div>
  <div id="notice"><a href="/home/about_en.html">Legal notices</a></div>
  <div id="lastupdate">Last update:&nbsp;<!-- TemplateBeginEditable name="Last update" -->Last update: 16-11-2007<!-- TemplateEndEditable --></div>
 </div>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros