Introducing Templates


"Working smart" in web development is usually equated with reusability. As we have talked about in previous chapters, you can save time by reusing library elements, reusing code snippets, and even reusing your workspace layout. This chapter focuses on one of Dreamweaver's strongest features when it comes to reusabilitypage templates.

Imagine being able to create one single web page that you could then duplicate with a few clicks of your mouse and use over and over and over. You might be thinking, "Hey, I can already do that by creating a page and choosing File, Save As for every page that I need." Although this is true, it doesn't enable you to make site-wide changes by editing a single file, which is what templates offer over the Save As option.

When you create a template in Dreamweaver, the page code that is specified as locked content is stored in a separate Templates folder within your site. Then a child page that is derived from the template links to the single instance of the template. Whenever you make changes to that single template document, the updates are automatically included in every child page that still remains attached to the template. Pretty cool, eh?



Special Edition Using Macromedia Studio 8
Special Edition Using Macromedia Studio 8
ISBN: 0789733854
EAN: 2147483647
Year: 2003
Pages: 337

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net