decorative banner

Adding custom objects


    You can create custom objects that represent items that you might add or link to a site, and add these objects to the Diagram set of the Objects palette. The Diagrams set of the Objects palette contains a number of predefined custom objects representing items such as forms, elements, databases, applets, and scripts. You can edit or delete these objects as needed.

    Custom objects are images in GIF format, located in the Modules/Diagram Objects folder in the GoLive application folder. When you add a custom object to a diagram, you can specify whether to create a file for the object when it is submitted, and the type of file to be created. You must create the file from a template, stationery, or sample file. For example, you can add a movie to a site by creating a custom object that uses the movie file as a sample file. When the diagram is submitted, a new movie file is created from the sample file. All non-HTML files created from custom objects become scratch items.

To create a new custom object and add it to the Diagram set of the Objects palette:

  1. Save an image using the following filename convention: myfilename-myextension.gif, where myfilename is the name that appears in the Objects palette tool tip and myextension is the default extension that is used in the filenames of the created objects. (If you do not include a default extension and the preceding hyphen, .html is used.)
  2. Place the image file in this folder: Adobe GoLive 6.0/Modules/Diagram Objects.
  3. Restart GoLive. To be available from the Objects palette, the custom object must in the Diagram Objects folder when GoLive starts.

To specify a sample file for a custom object:

  1. Create a default sample file in this folder: Adobe GoLive 6.0/Settings/DocumentStore/examples. The default sample file is used to create a file when you submit the object, unless you specify another file in the Object Inspector.
  2. Open the defaults.agldex file in the DocumentStore folder and copy an existing <example></example> specification in this file. Example specifications have this format:
  3. <example ident="myfilename" mime="mime type" ext="myextension" group="group name">

    <display name="myfilename" context="no" menu="no" sort="2020"/>

    <file url="examples/mysample.myextension"/>

    </example>

    where ident is the filename you specified for the custom object (without the hyphen and extension), mime is the appropriate mime type, ext is the extension you specified for the object, group is the appropriate group in the defaults.agldex file (markup, media, or misc), display name is the filename you specified (to be used in the user interface if the next three items are set to yes), context is no unless you want the file to be listed in the site context menu, menu is no unless you want the file to be listed in the File > New Special menu, dialog is not used at this time, sort specifies the sort order for the display name in menus, and file url is the name of your sample file.

  4. Edit the copy of the specification and place it in the appropriate group in the defaults.agldex file.
  5. Restart GoLive. To be available as a sample file, the file must be in the examples folder and defined in the defaults.agldex file when GoLive starts.

To add a custom object to a design diagram:

  1. Drag the object from the Diagram set of the Objects palette to the design view. You can add a custom object to an empty area of the design view, or drag it over an existing page, section, or other custom object to add it as a parent, sibling, or child of the existing object.
  2. In the Object tab of the Object Inspector, do any of the following:
    • Enter a design name for the object in the Name text box. This name appears in the design view as the label for the object only if Design Name is selected in the Display tab of the View palette. Otherwise the label is its filename or page title.
    • Select Create From to specify that a file will be created when the object is submitted, and then select Stationery, Template, or Sample. You must specify a stationery, template, or sample file in order to create a file for the custom object. To use a stationary or template file, choose the file from a menu. To use a sample file other than the default file in the DocumentStore folder, drag from the Point and Shoot button to the sample file. The sample file must be located on your computer.
    • Specify a filename and target folder for the file to be created when the object is submitted.

To edit a custom object:

    Do any of the following:

    • Change settings for the object in the Object tab of the Object Inspector.
    • Change the sample file in the Adobe GoLive 6.0/Settings/DocumentStore/examples folder.
    • Edit the specification for the object in the Adobe GoLive 6.0/Settings/DocumentStore/defaults.agldex file.
    • Delete the object by removing its GIF file from the Adobe GoLive 6.0/Modules/Diagram Objects folder.