Dreamweaver Extensions

Working with XML content

Open the catalogue.xml file in Dreamweaver (File -> Open), to change the content of your catalogue. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Image Catalogue). After that, in the category of 'General', click the 'Edit' button near the 'Source' field.

The following example shows the basic structure of the content XML file:

<?xml version="1.0" encoding="utf-8"?> 
<catalog>
   <category caption="Category name 1" image="photos/photo01.jpg" description="Short description">
      <item caption="Photo name 1" image="photos/photo01.jpg">
         <param caption="Param caption 1:">Param 1</param>
         <param caption="Param caption 2:">Param 2</param>
         <param caption="Param caption N:">Param N</param>
         <param multiline="true">Long description</param>
      </item>
      <item caption="Photo name 2" image="photos/photo02.jpg">
        <param caption="Param caption 1:" link="empty.html" target="_blank">Param 1</param>
        <param caption="Param caption 2:" link="mailto:example@yahoo.com">Param 2</param>
        <param caption="Param caption N:">Param N</param>
      </item>
   </category>
   <category caption="Category name N" image="photos/photo02.jpg" description="Short description">
      <item caption="Photo name 1" image="photos/photo01.jpg" />
      <item caption="Photo name 2" image="photos/photo02.jpg" />
      <item caption="Photo name N" image="photos/photo03.jpg" />
   </category>
</catalog>

In this example, parent <catalog> tag contains 2 child tags <category>. In example, items in the Category name N does not contain parameters of the description.

<catalog>

Description
Main tag and contains the description of the image catalogue.

<category>

Description
Used for division of pictures according categories.

Attributes

  • caption, The caption of the category. This caption is located under the thumbnail of the category.
  • image, The absolute or relative URL of the image file. A relative path must be relative to the HTML file. Absolute URLs must include the protocol reference, such as http://.
  • description, The short description of the category. This description is located under the thumbnail of the category.

<item>

Description
Contains the path to the image file and description of this item (image).

Attributes

  • image, The absolute or relative URL of the image file. A relative path must be relative to the HTML file. Absolute URLs must include the protocol reference, such as http://.
  • caption, The caption of the item (image).
  • link, The URL from which you can obtain the document. This parameter is used when you click the image, if this parameter 'Action on mouse click' set as 'GetLink'; see tab 'Images' in Flashdevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Image Catalogue).
  • target, Specifies the window or HTML frame into which the document should be loaded. You can enter the name of a specific window or select from the following reserved target names:
    • _self specifies the current frame in the current window.
    • _blank specifies a new window.
    • _parent specifies the parent of the current frame.
    • _top specifies the top-level frame in the current window.

<param>

Description
Contains the description of the item (image).

Attributes

  • caption, The caption of the parameter.
  • multiline, A Boolean value that indicates whether field is multiline (true) or not (false).
  • link, The URL from which you can obtain the document.
  • target, Specifies the window or HTML frame into which the document should be loaded. You can enter the name of a specific window or select from the following reserved target names:
    • _self specifies the current frame in the current window.
    • _blank specifies a new window.
    • _parent specifies the parent of the current frame.
    • _top specifies the top-level frame in the current window.