Replies Back to Article

Apply Template to A Single Folder and it's Contents

found anything of interrest?
June 23, 2003 by marc-antoine carrier
I would also be interrested in this issue.  3200 pages to convert!
A year later
July 1, 2004 by Ivanner Mora
almost a year later and I have the same problem, nothing about this yet?
Dreamweaver "Export Template markup as XML" might be a start...
August 4, 2004 by Chris Charlton
This would be a major time-consuming extension, I'm sure. Dreamweaver has "Export Template markup as XML" features built-in. I know you can then make tweaks in that XML file, and do a "generate page from template/import XML", so it's not all that, but as you can see this could be huge! I can't wait to hear about this further.
Found these two tutorials that could help a bit
August 7, 2004 by Chris Charlton
Here's a quote from the first link:
  • ALWAYS (and we mean ALWAYS) have a backup of your site before doing anything of this nature to it. Be safe and be proactive!
  • Dreamweaver MX has no way of determining which content goes into which editable region of the new template when applying a new template to a static site.
  • Dreamweaver MX cannot apply a template to more than one page at a time, regardless of the method used.
  • Tutorial: Static to Template Conversion! - http://www.dreamweavermx-templates.com/tutorials/tutconvert.cfm Other tutorial on a similar subject, Tutorial: Batch Apply Template! - http://www.dreamweavermx-templates.com/tutorials/tutbatch.cfm
apply style to folder and all its content files
September 19, 2008 by Liza van Riet

i used dreamweaver's seach functionality.

1.  Defined the specific folder that contains the files that need the stylesheet

2.  Search for a specific tag - in this case the head tag

3.  Set the action to "add before end tag" and in in the space provided - ad the code that links to your style sheet i.e. <link href="../../../style/style.css" rel="stylesheet" type="text/css">

4.  before you  hit the replace all button, just replace one or two to check if it works fine. Have a backup file anyway!

This worked for me!