Dreamweaver Extensions

Working with XML content

Open the gallery.xml file in Dreamweaver (File -> Open), to change the content of your gallery. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Frame Image Viewer). After that, in the category of 'Slides', 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"?> 
<gallery> 
    <item image="photos/photo01.jpg" caption="Photo 01" link="url.html" target="_self" />
    <item image="photos/photo02.jpg" caption="Photo 02" link="url.html" target="_blank" />
    <item image="photos/photo03.jpg" caption="Photo 03" />
</gallery>            

In this example, parent <gallery> tag contains 3 child tags <item>. The first and second images has the hyperlink. To use hyperlink you'll need in FlashDevelopment24 Wizard, in category 'Slides' set up the parameter 'Action on mouse click', in the value 'GetLink' (in the configuration XML file this parameter is 'slideAction').

<gallery>

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

<item>

Description
Contains the path to the image file and description of this 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 image content. This caption is located in the header of the gallery.

Optional attributes
The following attributes are optional for tag <item>.

  • link, The URL from which to 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.