![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the news.xml file in Dreamweaver (File -> Open), to change the content of your NewsAccordion. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> XML News Accordion). 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"?>
<component>
<news link="empty.html" target="_self">
<img src="photos/photo01.jpg" />
<caption>
<item color="0x42145F" font="Myriad Pro" font_size="14">NEWS 1</item>
<item color="0x858585" margin_top="-5">01-01-2010</item>
<item>Caption 1</item>
</caption>
<description>
<item color="0x42145F" font="Myriad Pro" font_size="14">NEWS 1</item>
<item color="0x858585" margin_top="-5">01-01-2010</item>
<item>Text 1</item>
</description>
</news>
<news link="empty.html" target="_self">
<img src="photos/photo02.jpg" />
<caption>
<item color="0x42145F" font="Myriad Pro" font_size="14">NEWS 2</item>
<item color="0x858585" margin_top="-5">01-01-2010</item>
<item>Caption 2</item>
</caption>
<description>
<item color="0x42145F" font="Myriad Pro" font_size="14">NEWS 2</item>
<item color="0x858585" margin_top="-5">01-01-2010</item>
<item>Text 2</item>
</description>
</news>
<news link="empty.html" target="_self">
<img src="photos/photo02.jpg" />
<caption>
<item color="0x42145F" font="Myriad Pro" font_size="14">NEWS 3</item>
<item color="0x858585" margin_top="-5">01-01-2010</item>
<item>Caption 3</item>
</caption>
<description>
<item color="0x42145F" font="Myriad Pro" font_size="14">NEWS 3</item>
<item color="0x858585" margin_top="-5">01-01-2010</item>
<item>Text 3</item>
</description>
</news>
In this example you can see 3 news items. For each news item there are specified source link, caption and description. For each description and caption there are specified individual colors. <component>Description <news>Description Attributes
<img>Description Attributes
<caption>Description Exmaple: <caption><item color="0xA0A0A0" margin_top="5">Text</item></caption> <description>Description Exmaple: <description><item color="0xA0A0A0" margin_top="5">Text</item></description> <item>Description Optional attributes
|