Forum Moderators: open

Message Too Old, No Replies

Applying Templates to Multiple Pages - DW MX

revisited

         

reuben101

8:08 pm on Oct 29, 2004 (gmt 0)

10+ Year Member




I found a discouraging thread on this from 2002 and had hoped somebody had found a solution since then. I'm using Dreamweaver MX and need to apply a template to several hundred similarly structured simple html pages. I didn't realize there was not an automated function to do this in DW when I volunteered to help out a local non-profit...

Looks like I'll need to apply the template and assign regions to each page individually. Sure does seem like something that should be integrated into the next build.

Any suggestions beyond "Find and Replace"?

DerekH

8:53 pm on Nov 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, but a Find And Replace (be sure to have two copies of your site on hard disc!) isn't too onerous.

Generate a "new" file from your template, and I'm sure you'll see how to fabricate a Find And Replace that will do the bulk of the work you need on the other pages. I did much the same myself a little while ago, and thinking about the prospect of doing it was worse than getting on and doing it for real!
DerekH

skitzo

9:48 pm on Dec 7, 2004 (gmt 0)

10+ Year Member



I will make the huge assumption that your not on a mac, but if you were you could use apple script's new visual interface to write a program to do this (talk to dreamweaver and make it do this)...

but as the user stated above, ALWAYS apply global changes on copy of the site, I'd dupe the original site and set it up locally as a totally different site if I were to do any search and replace functions across a whole site (then test the hell out of it before I used it as the updated site).

The search and replace fucntion (as you will see from the dialogue boxes) makes permanent changes to pages and sites with out really opening the pages and asking you to save, so watch out.