Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy code from page to a different part of the page, site-wide?

Status
Not open for further replies.

Happy100

Technical User
Jun 25, 2004
102
GB
Hi

I'm using DW4, but do have access to DW-MX 2004 if need be.

Does anyone know of a way, other than a page at a time to
copy a email address from with the source code and paste it
in a different place in the same page.
But be able to do this across the whole site.

Here's the code -

<!-- #BeginEditable "Name/Email" -->
<input type=hidden name="Establishment-name" value="This is our enquiry
form">
<input type=hidden name="Establishment-email" value="a@bcd.co.uk">
<!-- #EndEditable -->
<input type=hidden name="required" value="Name,Tel,Address,Country,email">
<input type="hidden" name="sort"
value="order:*,Establishment-name,Establishment-email,*,#,Name,Address,
Postcode,Country,Tel,Fax,email,#1,Date,Month,Year,#2,Nights,Persons,#3,
Single,Double,Twin,Family,#4,Extra-Info,*,*,cswu.com">
<input type=hidden name="*"
value="*****************************************">
<input type=hidden name="#" value="------ Customer contact
details ------">
<input type=hidden name="#1" value="------ First night of stay ------">
<input type=hidden name="#2" value="------ Number of nights & persons
staying ------">
<input type=hidden name="#3" value="------ Room(s) type required ------">
<input type=hidden name="#4" value="------ Extra information ------">
<input type=hidden name="subject" value="Booking Enquiry">
<input type="hidden" name="redirect"
value=" <input type="hidden" name="print_blank_fields" value="1">
<!-- #BeginEditable "fwd_address" -->
<input type="hidden" name="recipient" value=room-enquiry@mydomain.com>
<!-- #EndEditable -->

I have hundreds of these pages with the same code in it, though each email
address at the top is different
and I want to copy the email address from the top and add it in as an extra
recipient. i.e.. ending up with -
<input type="hidden" name="recipient"
value=a@bcd.co.uk,room-enquiry@mydomain.com>

Maybe a find and replace might do it?

Many thanks

Happy.
 
Yep Find and replace

Find "<input type="hidden" name="recipient" value="

Replace with "<input type="hidden" name="recipient" value=a@bcd.co.uk,"

Select Source Code as the option and Folder as the destination, away you go

[Peace][Pipe]
 
Hi

Sorry, I just realised that I didn't say that the value (email address)of a@bcd.co.uk is different on every page.

Thanks

Happy.

 
So the sum of your problem is that you have a body of text on hundreds of pages that is different in each case and you need to add new address' to them. Is there a fixed number of email address' where you could do several find and replaces?

Other than that the only other solution is to open each page and do it manually

Cheech

[Peace][Pipe]
 
Hi Cheech

Thanks for trying to help.
Looks like it's going to be a manual job! :-(

Each page has a different email address at the top, which I need to copy to the recipient value field. That's it!
I had a feeling it would be an manual job, but I thought I would ask, just in case someone know a way round it!

Thanks again.

Happy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top