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 1515 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


The Basic and Advanced tabs are mutually exclusive. The tab showing when OK is selected
determines which template parameter is used.
Now, look at an example to see how both the Basic and Advanced approaches work together. Take the situation,
described at the beginning of this section, which requires the use of a special logo every so often. To
accomplish this, I create one optional region using the Basic tab of the New Optional Region dialog box. In
this region, I just enter a name, mainLogoRegion, and enable the Show By Default option. In this region, I
place my standard logo. The Basic tab creates a template parameter with code like this in the :

Next, I create a second optional region and, this time, select the Advanced tab of the New Optional Region
dialog box. I want this region to be displayed only when the other region is not. To achieve this effect, I
select the Enter Expression option and enter the following in the text area:
mainLogoRegion != true
With optional regions, the name is the same as the condition; so translated into English, this expression reads,
???Show this region if mainLogoRegion is not shown.??? As shown in Figure 28-13, Dreamweaver uses the condition
as the name of the optional region, and this name is represented in the tab above the optional regions.


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