Dreamweaver CS4 Resources
|
Edit and modify server behaviors
You
can edit any server behavior created with the Server Behavior Builder, including
server behaviors you download from the Dreamweaver Exchange website,
and other third‑party developers.
If you apply a server behavior
to a page and then edit the behavior in Dreamweaver,
instances of the old behavior no longer appear in the Server Behaviors
panel. The Server Behaviors panel searches the page for code that matches
the code of known server behaviors. If the code of a server behavior changes,
the panel does not recognize earlier versions of the behavior on
that page.
Retain the old and new versions of the behavior in the panel Click the Plus (+) button on the
Server Behaviors panel (Window > Server Behaviors),
select New Server Behavior, and create a copy of the old server behavior.
Edit the code of a server behavior created with the Server Behavior Builder- In the Server Behaviors panel (Window >
Server Behaviors), click the Plus (+) button and select Edit Server
Behaviors from the pop‑up menu.
The Edit Server Behaviors dialog box displays all the behaviors
for the current server technology.
- Select the server behavior and click Edit.
- Select the appropriate code block and modify the code,
the parameter marks, or the position of the code block to be inserted
in pages.
- If the modified code does not contain any designer-supplied
parameters, click OK.
Dreamweaver regenerates the server
behavior without a dialog box. The new server behavior appears in
the Plus (+) pop‑up menu of the Server Behaviors panel.
- If the modified code does contain designer-supplied parameters,
click Next.
Dreamweaver asks you whether you
want to create a new dialog box, overwriting the old one. Make your
changes and click OK.
Dreamweaver saves
all changes in the server behavior’s EDML file.
|