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 Image Gallery). 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>
   <category caption="Category name 1">
      <item caption="Photo name 1" image="photos/photo01.jpg" link="link.html" target="_blank">
         <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" link=" link.html" target="_self">
         <param caption="Param caption 1:">Param 1</param>
         <param caption="Param caption 2:">Param 2</param>
         <param caption="Param caption N:">Param N</param>
      </item>
   </category>
   <category caption="Category name N">
      <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>
</gallery>

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

<gallery>

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

<category>

Description
Used for division of pictures according categories.

Attributes

  • caption, The caption of the category. This caption is located in the header of the 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 slide. This caption is located under the slide.
  • link, The URL from which you can obtain the document. This parameter is used either as a link in the slide description or additionally when you click the slide, if this parameter 'Action on mouse click' set as 'GetLink'; see tab 'Slides' in Flashdevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Image Gallery).
  • 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 slide. This description appears when you click a slide or during repeated mouse click on thumbnail. But the parameter 'Action on mouse click' must be set as 'Description', see tab 'Slides' in Flashdevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Image Gallery).

Attributes

  • caption, The caption of the parameter.
  • multiline, A Boolean value that indicates whether field is multiline (true) or not (false).