Section 20.4. Dreamweaver 8 Redesign and Construction


20.4. Dreamweaver 8 Redesign and Construction

Fast forward six months. Your site has grown. You've fine-tuned the content and the structure. You're getting good visitor feedback, so you know where your site is succeeding, and you have a pretty good idea about what you can do to make it even better. You're also getting a little tired of the same old look and feel. The more you think about it, the more certain you become that now would be an excellent time for mysite.com Version 2.0.

Redesign. The very word makes some web designers cringe. They think about all the shortcuts they took, knowing that they'd have to pay for them eventually. For their sites, that bill is coming due. But you built your site with Dreamweaver templates and external stylesheets, so you're out of the red and into the black before you even start the process. You might even catch yourself having fun.

Assume that you're managing the Magical Services site, and you decide that it's time for a change of graphical scenery. A few concept sketches and layout measurements later, and you come up with the redesign in Figure 20-16. From this mockup, you derive the tracing image that appears in Figure 20-17.

Figure 20-16. Here is the redesign mockup for the Magical Services site


Figure 20-17. Here is the tracing image for the redesign


If you flip back to Chapter 17 for the original design of this site, you see that you're definitely shaking things up. You're going from a side-nav layout to a top-nav layout, for one, and you're gaining a sidebar area where there was none before, not to mention that you're replacing the original's liquid layout with one of fixed width. By any normal standards, this redesign could get ugly. But here is where your decision to use Dreamweaver templates and external stylesheets pays dividends like you never thought possible. You build a single new template document that contains the redesigned layout, and then you attach it to the pages of your site. Dreamweaver replaces the original layout from the original template document with the new layout from the new template document. In a matter of minutes, your entire site has a brand new look. Even better, everything in the editable regionsthat is, the content on all your pagesremains exactly as it was. Your pages gain a new layout but keep their content. It's the very best kind of win-win.

Here's what you do:

  1. Launch Dreamweaver, create a new page called new.html and save it in your local root folder.

  2. Attach the tracing image to this page and draw the layout.

  3. Type text placeholders into the areas.

  4. Attach the current stylesheet.

  5. Save the page as a template: new.dwt or something to that effect.

  6. Insert editable regions. The editable regions can be in completely different locations in the new template. Just make sure that the new regions have the same names as the old ones. Otherwise, Dreamweaver won't be sure which region corresponds with which. You can also add entirely new editable regionsregions that don't correspond to anything in the old templateand name them anything you like.

    TIP

    What happens if you have, say, a sidebar area in the current site but no sidebar area in the new site? What does Dreamweaver do with the existing sidebar content on your pages?

    What happens is up to you. When you apply the new template to the pages of your site, Dreamweaver gives you the Inconsistent Region Names dialog box, telling you in effect that it doesn't know what to do with the stuff in the current sidebar area because there isn't a corresponding sidebar area in the new design. You can choose to move the sidebar content to another area in the layout or simply delete this content.


  7. Add the nav bar.

  8. Add other images and text. Don't worry about the content inside the editable regions. Just add the content that goes specifically in the template.

  9. Add and connect the links.

  10. Apply styles from the style sheet to the elements on the page, modifying the styles as needed to match your new design.

When you're done, you have something that looks like Figure 20-18.

Figure 20-18. Your new template looks like this


Now all you have to do is apply the new template to the existing pages of your site:

  1. Open an existing page in Dreamweaver. Don't be alarmed if the styles of the new design appear in the layout of current design. In fact, be alarmed if the new styles don't appear. The whole point of having an external CSS document is that you make the changes once, and they propagate themselves throughout your site.

  2. Choose Modify Templates Apply Template To Page from the main menu. The Select Template dialog box in Figure 20-19 appears.

    Figure 20-19. Choosing your new template

  3. Choose your new template, and click Select.

Just like that, the page is redesigned, as Figure 20-20 shows. Magical Services indeed! Choose File Save from the main menu and close the document window.

Figure 20-20. Dreamweaver adds the new template to the page and moves all the original content


Now, just follow the same three steps for the rest of the pages in your site, and you can consider your redesign done. Connect to your host and synchronize your sites, and your fresh, new pages are live on the Web.



Dreamweaver 8 Design and Construction
Dreamweaver 8 Design and Construction (OReilly Digital Studio)
ISBN: 0596101635
EAN: 2147483647
Year: N/A
Pages: 154
Authors: Marc Campbell

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