Working with XML contentTo change the content of your gallery you can use FlashDevlopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> XML Grid Gallery -> 'Image list') OR you can edit the content directly in gallery.xml file in Dreamweaver (File -> Open). The following example shows the basic structure of the content XML file: <?xml version="1.0" encoding="utf-8"?>
<gallery>
<category caption="CATEGORY 01">
<item caption="Photo 01" image="gallery_files/photos/01/photo01.jpg" description="DESCRIPTION 1" />
<item caption="Photo 02" image="gallery_files/photos/01/photo02.jpg" description="DESCRIPTION 2" />
<item caption="Photo 03" image="gallery_files/photos/01/photo03.jpg" video="videos/video.flv" />
</category>
<category caption="CATEGORY 02">
<item caption="Photo 01" image="gallery_files/photos/02/photo01.jpg" tip="TIP 1" link="empty.html" target="_blank" />
<item caption="Photo 02" image="gallery_files/photos/02/photo02.jpg" tip="TIP 2" link="empty.html" target="_blank" />
</category>
</gallery>
In this example, parent <gallery> tag contains 2 child tags <category>. Each item inside category represents as an image. All these items are differ only in additional attributes. For example, first and second image in the first category have following attributes: caption - caption="Photo 01", link to image - image="gallery_files/photos/01/photo01.jpg" and description - description="DESCRIPTION 1". Third item represents as video file video="videos/video.flv" with caption - caption="Photo 03" and thumbnail - image="gallery_files/photos/01/photo03.jpg". Images in the second category have additional attributes like tip - tip="TIP 1" and hyperlink - link="empty.html" target="_blank". <gallery>DescriptionMain tag and contains the description of the image gallery. <category>DescriptionContains images of this category. Descriptions of the images represented as tags <item>. Attributes
<item>DescriptionContains the path to the image file and description of this image. Here is used Server scripts to create thumbnails. BUT you can create thumbs using your own images, just add thumb attribute and set link to this file, which will be used as a thumbnail. If the server scripts are turned off and you didn't specify thumb attribute, so thumbnails will be created from the main (original) images. Attributes
|