Adobe 38040334 - Dreamweaver CS3 User Manual page 336

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
value is a string that identifies the type of markup (or the tag name that is associated with
tagNameOrType
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
to determine whether the Property inspector is the right one for the content. For more information, see "Creating
Property inspectors for locked content" on page 331. Locked content cannot be inspected by the Dreamweaver
built-in Property inspectors. For example, specifying
• The
dependentFilesList
markup depends. Files are referenced as URLs, relative to the user's document. If the user updates one of the files
named in the
dependentFilesList
that contains the list.
• The
encodedOriginalMarkup
small subset of URL encoding (use
to URL-encode a string is to use the
'<img src="foo.gif">'
The following example shows the locked portion of code that might be generated from the translation of the server-
side include
<!--#include virtual="/footer.html" -->
<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>]
[<A TARGET="_top" HREF="/support/">support</A>]
[<A TARGET="_top" HREF="/company/">about us</A>]
[<A TARGET="_top" HREF="/help/">help</A>]
</CENTER>
<!-- end footer -->
<MM:EndLock>
Creating a translator that locks code inside a script tag can cause the translator to fail. For example, suppose you have
the following code:
<script language="javascript">
<!--
function foo() {
alert('<bean:message key="show.message"/>');
}
// -->
</script>
Then you create a translator for the
section inside a
MM:BeginLock
tag that uses regular JSP tags like
bean:message
translator to skip this code, and the translation succeeds.
canInspectSelection()
value is a string that contains a comma-separated list of files on which the locked
string, Dreamweaver automatically retranslates the content in the document
value is a string that contains the original, untranslated markup, encoded using a
%22 for ", %3C for <, %3E for >, and %25 for %
method. For example, if
escape()
,
returns
escape(myString)
struts tag, the translator fails because you are creating a
bean:message
section. A workaround is to create a JSP wrapper around the
MM:BeginLock
<%= My_lookup.lookup("show.message") %>
function of a custom Property inspector
does not make the Image panel appear.
type="IMG"
myString
%3Cimg%20src=%22foo.gif%22%3E
:
DREAMWEAVER CS3
Extending Dreamweaver
). The quickest way
equals
.
. This causes your
330

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents