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 -> Flash Media Gallery). After that, in the category of 'Content', 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 caption="Video 01" image="photos/video01.jpg" video="videos/video01.flv" />
    <item caption="Video 02" image="photos/video02.jpg" video="videos/video02.flv" />
    <item caption="Photo 01" image="photos/photo01.jpg" />
    <item caption="Photo 02" image="photos/photo02.jpg" />
    <item caption="Photo 03" image="photos/photo03.jpg" thumb="thumbs/thumb01.jpg" /> 
</gallery>
            

In this example, parent <gallery> tag contains five child tags <item>. First two slides are video, because they contain attribute video. The others slides contains just photos. The feature of the last slide is that thumbnail for this slide loads from the separate file, which is mentioned in the attribute thumb.

<gallery>

Description
Main tag and contains the description of the photo and video gallery.

<item>

Description
Contains the path to the files and descriptions of the photo and video content.

Attributes

  • caption, The caption of the video (photo) content.
  • image, The absolute or relative URL of the image file to be used as saver. A relative path must be relative to the HTML file. Absolute URLs must include the protocol reference, such as http://.
  • video, The absolute or relative URL of the video file to be used. If this attribute is missing, then the component shows only the image as the photo gallery.
  • thumb, The absolute or relative URL of the image file to be used as thumbnails. If this attribute is missing, then thumbnails are created automatically from the original photos. This attribute is recommended for use only if you are not using a script scripts.