Adobe 38040334 - Dreamweaver CS3 User Manual page 332

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Description
Returns the default file extension of files that use the current server model. (The default file extension is the first in
the list.) If no user document is currently selected, the
selected site.
Arguments
None.
Returns
A string that represents the supported file extensions.
dom.serverModel.getServerIncludeUrlPatterns()
Availability
Dreamweaver MX.
Description
Returns the following list of properties, which let you access:
• Translator URL patterns
• File references
• Type
Arguments
None.
Returns
A list of objects, one for each
Property
pattern
fileRef
type
Example
The following code snippet from a participant file shows a translator
<searchPatterns whereToSearch="comment">
<searchPattern paramNames=",ssi
<![CDATA[/<!--\s*#include\s+(file|virtual)\s*=\s*"([^"]*)"\s*-->/i]]>
</searchPattern>
</searchPatterns>
serverModel
. Each object has the following three properties:
searchPattern
Description
A JavaScript regular expression that is specified in the
an EDML file. (A regular expression is delimited by a pair of forward slashes (
The 1-based index of the regular expression submatch that corresponds to the
included file reference.
The portion of the
paramName
_includeUrl suffix. This type is assigned to the type attribute of the
<MM:BeginLock>
tag. For an example, see Server Model SSI.htm in the
Configuration/Translators folder.
_
_
comment
object is set to the server model of the currently
searchPattern
value that remains after removing the
searchPatterns
includeUrl">
DREAMWEAVER CS3
API Reference
field of
).)
//
tag:
327

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents