How customizing server models works

 < Day Day Up > 

You can customize some features of a server model using the functions that are available in the Server Model API.

Macromedia Dreamweaver 8 asks new users to identify server models when they first start Dreamweaver. For cases when the user does not identify a server model, you can create a dynamic dialog box that prompts the user to complete the necessary steps. This dialog box appears when the user attempts to insert a server object. For information on creating this dialog box, see the getSetupSteps() and setupStepsCompleted() functions.

You might want to create a specialized server model. Macromedia suggests that you create a new server model rather than editing any of the ones that come with Dreamweaver. (For information regarding creating new document types that are supported by your server model, see "Extensible document types in Dreamweaver" on page 35.)

When you create a new server model, you need to include an implementation of the canRecognizeDocument() function in your server model file. This function tells Dreamweaver the level of preference that it should give to your server model for handling a file extension when multiple server models claim a particular file extension.

     < Day Day Up > 


    Developing Extensions for Macromedia Dreamweaver 8
    Developing Extensions for Macromedia Dreamweaver 8
    ISBN: 0321395409
    EAN: 2147483647
    Year: 2005
    Pages: 282

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net