Learn Web Design at Digital Family

How can I use a template to make changes to all the pages on my site?

December 9th, 2007 · No Comments

Hi Janine

I’ve been creating a Web site by using the templates feature. However, when I make a change to a non-editable region, it only updates the open pages created from that template. I make a change and then open a page that wasn’t open when I made the change (although created from the template), and the change didn’t happen, even though the log shows they were made in that very file. Whew, hope that all makes sense. Let me know if any of it doesn’t, and I can clarify better.

Thanks again!
Ryan

Hi, Ryan,

I just hope I can give you a few answers here and there to help you on your way. If you want to learn to create templates, check out my templates tutorials at www.DigitalFamily.com/dreamweaver.

If you’re setting up your templates correctly and Dreamweaver isn’t being buggy on you (Like how I shared the potential blame there?), then what you’re describing shouldn’t happen. (That’s no help at all, huh?)

Okay, when you make changes to the “locked regions” and not the “editable regions” in a template, Dreamweaver should automatically update all pages generated from that template whether they are open or not. If they are open, you’ll have to save them before you close them for the changes to be recorded. If they are not open, the changes should be automatic. When you save a template, Dreamweaver should also display a dialog asking if you want those changes applied to all pages created from the template. Make sure to say yes and note what pages are listed when it’s complete so you can identify any pages that may not be updating properly.

If the update process is not happening, it may be that somehow the pages have become unattached from the template or that you are making changes to a region that is editable rather than to a region that is locked. By design, changes to editable regions will not be applied to pages created from the template.

If you’re sure you’re doing everything right and Dreamweaver is still not behaving, you may get better results by re-creating the pages that are not updating from the template. Just create new pages from the template and copy and paste your content into place in each page; then save the new pages and delete the old ones. I know this is extra work, but it may be worthwhile. It’s better to get all your templates working well early in the process than to have update problems later, after you’ve created lots of pages with lots of content.

Hope all that helps and remember, you can learn more about templates at www.DigitalFamily.com/dreamweaver.

JanineStill want more? Visit the Dreamweaver Help Center at www.DigitalFamily.com/dreamweaver to find Dreamweaver tips, tricks, and tutorials.

Tags: Dreamweaver 8 · Dreamweaver CS3 · Dreamweaver MX · Dreamweaver MX 2004 · Templates

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.