• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Nested Templates

In most cases, templates, combined with the flexibility of editable, optional, and repeating regions, are enough for most web development tasks. In some rare cases, however, single locked regions might be too rigid to be useful. Asume for a moment that Dorknozzle has decided to branch out into four separate companies in support of their four different products (Widgets, Gadgets, Doodads, and Chingaderas). Although the Dorknozzle parent company still wholly owns the four subsidiaries, each of the four companies' websites should have a slightly different look and feel than the parent company. One way of achieving this is to create different templates, one for the parent company site and one for each subsidirate company site that's a slight variation (maybe a different color scheme) of the parent. The downside to this approach is maintainability. If the parent site were to be customized, changes wouldn't trickle down to the four subsidirate sites because they're based on entirely different templates. To fix this problem, we could create a nested template. A nested template works much like the name says: It's a template wrapped within the framework of a second template. In the model we've mentioned above, we could easily solve the maintenance issue by creating a template for our parent company and then create nested templates for our subsidirate sites.

This way, if customizations are made to the parent template, the changes trickle down to all the subsidirate pages. Because nested template development in Dreamweaver isn't all that intuitive, follow these steps to see how they work:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint