SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1516 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


NOTE NOTE
889
Using Dreamweaver Templates 28
FIGURE 28-13
Complex expressions can be used to show or hide optional regions.
Dreamweaver template expressions support a subset of JavaScript operators, so I could have also written
this expression like this:
!mainLogoRegion
In a different situation, you might want to tie a number of noncontiguous optional regions together so that
if the main region shows, the others would as well. You achieve this by setting Use Parameter to the name of
the main region. You??™ll find a more detailed discussion of template expressions a little later in this chapter.
To insert an optional region, follow these steps:
1. Choose Insert ??? Template Objects ??? Optional Region or, from the Templates menu of the Insert
bar, click the Optional Region icon.
2. If you want to create a template parameter, from the Basic tab, follow these steps:
a. Enter a unique name for the optional region in the Name field.
b. Choose the Show By Default option if you want to make the region initially viewable.
3. If you want to link this optional region to the state of another optional region, from the Advanced
tab, follow these steps:
a. Select the Use Parameter option.
b. Choose an existing optional region from the drop-down list.


Pages:
1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528