![]() |
|
Dreamweaver Extensions
|
Working with XML contentTo change the content of your gallery you can use FlashDevlopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Image 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><![CDATA[DESCRIPTION 1]]></description>
</item>
<item caption="Photo 02" image="gallery_files/photos/01/photo02.jpg">
<description><![CDATA[DESCRIPTION 2]]></description>
</item>
<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" />
<item caption="Photo 02" image="gallery_files/photos/02/photo02.jpg" tip="TIP 2" />
</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 1" - <description><![CDATA[DESCRIPTION 1]]></description>. 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" but no additional description. <gallery>Description <category>Description Attributes
<item>Description Attributes
<description>Description <description><![CDATA[ <p><font color='#707070' size='18'>DESCRIPTION</font></p>Note: Use only SINGLE quotes inside tag <description>. |