beautypg.com

Coldfusion, The definition file for your connection type – Adobe Dreamweaver API Reference CS5 User Manual

Page 89

background image

84

DREAMWEAVER API REFERENCE

The database connectivity API

Last updated 8/27/2013

ColdFusion

When you use UltraDev 4 ColdFusion, Dreamweaver relies on a ColdFusion include file to get a list of data sources.

Note: For regular Dreamweaver ColdFusion, Dreamweaver ignores any include files and, instead, makes use of RDS to
retrieve the list of data sources from ColdFusion.

The UltraDev 4 ColdFusion include file should be named MyConnection1.cfm, where MyConnection1 is the name of
your connection. The following example shows the include file for a ColdFusion connection to a product table:








The server behavior file includes this connection by using the

cfinclude

statement, as shown in the following

example:

The definition file for your connection type

For each server model, there is a connection_includefile.edml file that defines the connection type and maps the
properties that are defined in the include file to elements in the Dreamweaver interface.

Dreamweaver provides default definition files, one for each of the predefined server models, as listed in the following
table.

Dreamweaver uses the

quickSearch

and

searchPattern

parameters to recognize connection blocks and the

insertText

parameter to create connection blocks. For more information on EDML tags and attributes, and regular

expression search patterns, see “Server Behaviors” in Extending Dreamweaver.

Server model

Subfolder within the Configuration/Connections folder

ASP JavaScript

ASP_Js

ASP.NET CSharp

ASP.NET_Csharp

ASP.NET VBScrip

ASP.NET_VB

ASP VBScript

ASP_Vbs

ColdFusion

ColdFusion

JavaServer Page

JSP

PHP MySql

PHP_MySql