MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 359

Extending dreamweaver
Table of Contents

Advertisement

Type
Block tag.
Required
No.
<updatePattern>
Description
This tag is a specific type of regular expression that lets you update participant text precisely.
There should be at least one update pattern definition for every unique parameter that is
declared in the insertion text (of the form
Parent
updatePatterns
Type
Block tag.
Required
Yes (at least one, if you declare the
Values
The value is a regular expression that finds a parameter between two parenthetical
subexpressions, in the form
need to define at least one update pattern for each unique
text. The following example shows how your insertion text might look:
<insertText location="afterSelection">
<![CDATA[<%= @@rs@@.Field.Items("@@col@@") %>]]>
</insertText>
A particular instance of the insertion text on a page might look like the following example:
<%= RS1.Field.Items("author_id") %>
There are two parameters,
need two update pattern definitions:
<updatePattern paramName="rs" >
/(\b)\w+(\.Field\.Items)/
</updatePattern>
<updatePattern paramName="col">
/(\bItems\(")\w+("\))/
</updatePattern>
@@paramName@@
updatePatterns
/(pre-pattern)parameter-pattern(post-pattern)/
and
. To update this text after you insert it on the page, you
rs
col
).
tag).
@@paramName@@
Participant EDML files
. You
in the insertion
359

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