Working with XML contentOpen 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 Zoom Gallery). 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"?> <gallery> <item caption="CAPTION 1" image="photos/photo01.jpg" large_image="photos/photo_large_01.jpg" link="empty.html" target="_blank" /> <item caption="CAPTION 2" image="photos/photo02.jpg" large_image="photos/photo_large_02.jpg"/> <item caption="CAPTION 3" image="photos/photo03.jpg" large_image="photos/photo_large_03.jpg" description="DESCRIPTION" /> <item caption="CAPTION 4" image="photos/photo04.jpg" /> </gallery> In this example, parent <gallery> tag contains 4 child tags <item>. Each item represents as an image. All these items are differ only in additional attributes. For example: first item has caption - caption="CAPTION 1" , source of the image that is used in thumbnails and as an image preview- image="photos/photo01.jpg", source of the image that is used in Zoom window (here for example is used image of the larger resolution) - large_image="photos/photo_large_01.jpg" and it has a hyperlink - link="empty.html" target="_blank". Second item has caption, source of the image that is used in thumbnails and as an image preview and source of the image that is used in Zoom window. Third item additionally has description - description="DESCRIPTION" that is used in Zoom Window. Fourth item has only caption and source of the image that is used in thumbnails and as an image preview. <gallery>DescriptionMain tag and contains the description of the image gallery. <item>DescriptionContains the path to the image file and description of this image. Attribute image is used to set the link to image. This image will be used in thumbnails and as an image preview. large_image attribute is used to set link to the original image, that is used in popup window. We have made feature of two different images in order to improve loading speed of the gallery. If the attribute large_image isn't set, so the same image will be used for Zoom window. Attributes
|