![]() |
|
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 Mirror 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 1">
<img src="photos/photo01.jpg" caption="Photo 1" comment="Short comment">
<description>
<![CDATA[
<p><font face="Impact" size="18" color='#D5D5D5'>Title</font></p>
<p lign="justify" margin_bottom="3"><font face="Tahoma" size="11" color='#707070'>Description</font></p>
<p href="empty.html" target="_blank"><font face="Tahoma" size="14" color='#CF9450'><u>Hyperlink</u></font></p>
]]>
</description>
</img>
<img src="photos/photo02.jpg" caption="Photo 2" comment="Short comment">
<description>
<![CDATA[
<p lign="justify" margin_bottom="3"><font face="Tahoma" size="11" color='#707070'>Description</font></p>
<p href="empty.html" target="_blank" icon="true"><font face="Tahoma" size="11" color='#CF9450'>Hyperlink</font></p>
]]>
</description>
</img>
<img src="photos/photo03.jpg" caption="Photo 3" comment="Short comment">
<description>
<![CDATA[
<p lign="justify"><font face="Tahoma" size="11" color='#707070'>Description</font></p>
]]>
</description>
</img>
</category>
<category caption="CATEGORY 2">
<img src="photos/photo01.jpg" caption="Photo 1" comment="Short comment" />
<img src="photos/photo02.jpg" caption="Photo 2" comment="Short comment" />
<img src="photos/photo03.jpg" caption="Photo 3" comment="Short comment" />
</category>
</gallery>
In this example, parent <gallery> tag contains two child tags <category>. Each category has 3 tags <img>. In the first category all the photos have some short comments, description and links (except the last one), which are situted in the special symbols <![CDATA[...]]>. There are no description In the second category. So, the description of a photo is an optional thing. Also in the second category all images have comments. 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
<description>Description Description used a special symbols <![CDATA[...]]>. Each content consists of paragraphs <p>. The text of a paragraph can be edited with the help of HTML tag <font>. Besides a default tag attribute align for the tag <p> it is available additional attributes:
|