• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Using Template Parameters

Chapter 9. Using Template Parameters

If you completed the Lesson 8 exercises that covered optional regions, you already saw template parameters in action. When a Macromedia Contribute or Dreamweaver user accesses the Template Properties dialog box and changes the display state of an optional region from false to true (or vice versa), the value changed is a template parameter. But enabling or disabling an optional region is just the tip of the iceberg when it comes to what you can do with template parameters. One of the most useful applications for template parameters—demonstrated in this chapter—is to make an attribute editable within an otherwise locked tag and allow it to be changed within Contribute.

Template parameters are set at design-time in either Dreamweaver or Contribute. Any given template parameter in one child page can be set to a different value in another child page, even if both child pages are derived from the same template. In fact, this facility provides template parameters with much of their inherent power. Take into account what you already know about dependent optional regions, factor in template parameters, and you have an extremely flexible templating system. For example, you could alter one template parameter and completely change all the key elements on a page, including logo, page title, and navigation.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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