n Display particular content depending on the position of the row??”first, second, second-to-last, or
last, for example??”in the repeating region.
Two types of template expressions exist: template expression statements and inline template expressions.
Template expression statements take the form of a specialized HTML comment, like this:
Template expression statements are coded by hand. Inline template expressions are surrounded by parentheses
and double @ signs, like this:
@@(fileExt)@@
Inline template expressions can only be entered by hand, but they are very flexible. You can insert an inline
template expression as an attribute into any of Dreamweaver??™s text field interfaces, such as the Link field of
the text Property inspector or the Bg (Background Color) field of the row Property inspector. Template
expressions not entered as attributes appear as Invisible Elements with a double-@ sign symbol as shown in
Figure 28-14. Template expression statements appear with a script icon.
Although you can enter an inline template expression without a problem in the Code view, you
cannot enter one on the page in Design view.
Template expression language and object model
Template expressions are written in their own language, which uses a subset of JavaScript operators and its
own object model.
Pages:
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532