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

Chapter 8. Setting Up Optional and Repea... > Making Dependent Optional Regions

Making Dependent Optional Regions

Each optional region previously inserted in this chapter stood on its own; whether the content in the region was shown or not depended on a variable set for each optional region. This level of interaction is fine when working with independent areas that can be displayed or hidden in any combination. As you develop more complex templates, however, you'll want to include several regions that all need to be enabled or disabled according to the state of a key region. Optional regions such as these are said to depend on the main region and are referred to as dependent optional regions. Both Dreamweaver and Contribute support dependent optional regions.

Optional regions include an attribute of type="boolean". A Boolean statement is one that is either true or false. With dependent optional regions, if one region is set to true (that is, it is shown), other regions are also shown. Standard optional regions are defined using the Basic tab of the New Optional Region dialog box; dependent optional regions use the Advanced tab.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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