The
mmTranslatedValue
translator needs to translate more than one attribute in a single tag, you must add a routine in
the translator that appends numbers to the
mmTranslatedValue1
The value of the
mmTranslatedValue
at least one valid attribute/value pair. This means that
mmTranslatedValue="src=%22open.jpg%22"
(dayType == weekday) then open.jpg else closed.jpg" ?>
weekday) then src="open.jpg" else src="closed.jpg" ?>
mmTranslatedValue="%22open.jpg%22"
only the value, not the attribute.
Translating more than one attribute at a time
The
mmTranslatedValue
Consider the following untranslated code:
<img <? if (dayType==weekday) then src="open.jpg" width="320" ¬
height="100" else
src="closed.jpg" width="100" height="320" ?> alt="We're open 24 ¬
hours a day from
12:01am Monday until 11:59pm Friday">
The following example shows how the translated markup might appear:
<img <? if (dayType==weekday) then src="open.jpg" width="320" ¬
height="100" else
src="closed.jpg" width="100" height="320" ?>
mmTranslatedValue="src=%22open.jpg%22 width=%22320%22 ¬
height=%22100%22"
alt="We're open 24 hours a day from 12:01am Monday until 11:59pm ¬
Friday">
The spaces between the attribute/value pairs in the
encoded. Because Dreamweaver looks for these spaces when it attempts to render the
translated value, each attribute/value pair in the
encoded separately and then pieced back together to form the full
attribute. For an example of this process, see
on page
443.
436
Data Translators
attribute must be unique within the tag. If it is likely that your
,
mmTranslatedValue2
attribute must be a URL-encoded string that contains
is not valid for either example because it contains
attribute can contain more than one valid attribute/value pair.
mmTranslatedValue
, and so on).
is a valid translation for both
mmTranslatedValue
mmTranslatedValue
"A simple attribute translator example"
attribute (for example,
src="<? if
and
<? if (dayType ==
.
attribute are not
attribute must be
mmTranslatedValue
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?