MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 438

Extending dreamweaver
Table of Contents

Advertisement

The syntax of the XML tags is shown in the following example:
<MM:BeginLock translatorClass="translatorClass" ¬
type="tagNameOrType" depFiles="dependentFilesList" ¬
orig="encodedOrignalMarkup">
Translated content
<MM:EndLock>
The italicized values in this example have the following significance:
The
translatorClass
in the array that the
The
tagNameOrType
that is associated with the markup) that is contained in the lock. The string can contain
only alphanumeric, hyphen (-), or underscore (_) characters. You can check this value in
the
canInspectSelection()
whether the Property inspector is the right one for the content. For more information, see
"Creating Property inspectors for locked content" on page
inspected by the Dreamweaver built-in Property inspectors. For example, specifying
does not make the Image panel appear.
type="IMG"
The
dependentFilesList
on which the locked markup depends. Files are referenced as URLs, relative to the user's
document. If the user updates one of the files named in the
Dreamweaver automatically retranslates the content in the document that contains the
list.
The
encodedOriginalMarkup
markup, encoded using a small subset of URL encoding (use
%3E for >, and %25 for %
method. For example, if
escape()
escape(myString)
The following example shows the locked portion of code that might be generated from the
translation of the server-side include
<MM:BeginLock translatorClass="MM_SSI" type="ssi" ¬
depFiles="C:\sites\webdev\footer.html" orig="%3C!--#include ¬
virtual=%22/footer.html%22%20--%3E">
<!-- begin footer -->
<CENTER>
<HR SIZE=1 NOSHADE WIDTH=100%>
<BR>
[<A TARGET="_top" HREF="/">home</A>]
[<A TARGET="_top" HREF="/products/">products</A>]
[<A TARGET="_top" HREF="/services/">services</A>]
438
Data Translators
value is the unique identifier for the translator; it is the first string
getTranslatorInfo()
value is a string that identifies the type of markup (or the tag name
function of a custom Property inspector to determine
value is a string that contains a comma-separated list of files
value is a string that contains the original, untranslated
). The quickest way to URL-encode a string is to use the
myString
returns
%3Cimg%20src=%22foo.gif%22%3E
<!--#include virtual="/footer.html" -->
function returns.
439. Locked content cannot be
dependentFilesList
%22 for ", %3C for <,
equals
'<img src="foo.gif">'
.
string,
,
:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents