![]() |
|
Dreamweaver Extensions
|
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 Fusion 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>
<category caption="CATEGORY 1" src="photos/category01.jpg">
<img src="photos/photo01.jpg" description="Description 1" />
<img src="photos/photo02.jpg" description="Description 2" />
<img src="photos/photo03.jpg" description="Description 3" />
<img src="photos/photo04.jpg" description="Description 4" />
</category>
<category caption="CATEGORY 2" src="photos/category02.jpg">
<img src="photos/photo05.jpg" description="Description 1" link="empty.html" target="_self" />
<img src="photos/photo06.jpg" description="Description 2" link="empty.html" target="_self" />
<img src="photos/photo07.jpg" description="Description 3" link="empty.html" target="_self" />
</category>
<category caption="CATEGORY 3" src="photos/category03.jpg">
<img src="photos/photo08.jpg" description="Description 1" link="empty.html" target="_blank" />
<img src="photos/photo09.jpg" description="Description 2" link="empty.html" target="_blank" />
<img src="photos/photo10.jpg" description="Description 3" link="empty.html" target="_blank" />
</category>
</gallery>
In this example, parent <gallery> tag contains three child tags <category>, each category has its own category image. First category has 4 tags <img>. In the first category all the photos have some short comments. Second category has 3 tags <img>, each tag has image, short description and hyperlink. Third category has 3 tags <img>, each tag has image, short description and hyperlink. The gallery can be divided into any quantity of categories and each category can contains any quantity of photos. <gallery>Description <category>Description Attributes
<img>Description Attributes
|