Getsetupsteps() – Adobe Extending Dreamweaver CS4 User Manual
Page 321
315
EXTENDING DREAMWEAVER CS4
Components
function getCodeVi e wDropCode(compone nt Rec )
{
var codeToDrop="";
if (componentRec)
{
if (componentRec.objectType == "Connection")
{
v ar connPart = new Participant("d at asource_tag");
var paramObj = new Obje ct( );
paramObj.datasource = componentRec.name;
codeToDrop = con nPart.getInsertString(paramObj, "aboveHTML");}
el se if ((componentRec.objectType == "Column")| |
(componentRec.objectType == "Paramete r "))
{
c odeToDrop = componentRec.dropcode;
}
e
ls
e{
codeToDrop = co mponentRec.name;
}
}
return codeToDrop;
}
getSetupSteps()
Availability
Dreamweaver MX.
Description
Dreamweaver calls this function if the
setupStepsCompleted()
function returns zero or a positive integer. This
function controls the server-side setup instructions, which can be implemented using extensions that use a modal
dialog box and extensions that use server components.
This function returns an array of the strings for Dreamweaver to display in either the Setup Steps dialog box or the
Components panel, depending on the extension type.
Arguments
None.
Returns
An array of n+1 strings, where n is the number of steps, as described in the following list:
•
The title that appears above the list of setup steps
•
For each step, the text instructions, which can include any HTML markup that is legal inside a
li
tag
You can include links (
a
tags) in the list of steps by using the following form:
The "handler" value can be replaced by any of the following strings or any JavaScript expression, such as
"
dw.browseDocument('http://www.adobe.com')
":
•
An
"Event:SetCurSite"
handler opens a dialog box to set the current site.