Wed 20 Dec 2006
Bulk updating pages with dreamweaver templates
Posted by Joe under Web development and designNo Comments
I’m working on the redesign of a site which uses DreamWeaver. This is a very large site (1000+ pages) to still use file based content management. And Dreamweaver MX2004 (I don’t know about other versions) doesn’t allow you to ‘Apply template’ to multiple pages at once.
…but I found a workaround. It goes like this:
You have a whole lot of pages with the template ‘oldtemplate.dwt’ and you want to convert them to ‘newtemplate.dwt’
- BACKUP – you might break things
- Rename ‘newtemplate.dwt’ to ‘newtemplate.dwt.bak’.
- If you already have some pages in ‘newtemplate.dwt’ DW will ask you if you want to update links. Select ‘Don’t update’
- Rename ‘oldtemplate.dwt’ to ‘newtemplate.dwt’
- DW will ask you if you want to update links. Select ‘Update’
- Delete ‘newtemplate.dwt’ (what was ‘oldtemplate.dwt’)
- Rename ‘newtemplate.dwt.bak’ to ‘newtemplate.dwt’
- Run ‘Update Pages’ for ‘Files that use’ ‘newtemplate.dwt’
If you have named all of your editable regions the same this should just happen. If not, you may have to use the dialogue box to point the old region names at the new ones.