![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the news.xml file in Dreamweaver (File -> Open), to change the content of your Advanced News Scroller. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Advanced News Scroller). 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>
<short>
<date>01.01.2011</date>
<title color="0xB0490A" font="Myriad Pro" font_size="14">TITLE 1</title>
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
</short>
<full>
<date>01.01.2011</date>
<title color="0xB0490A" font="Myriad Pro" font_size="18">TITLE 1</title>
<img src="media/image.jpg" width="100" height="75" />
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 2</caption>
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 3</caption>
</full>
</news>
<news>
<short>
<date>02.01.2010</date>
<title color="0xB0490A" font="Myriad Pro" font_size="14">TITLE 2</title>
<img src="media/image.jpg" width="70" height="50" />
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 2</caption>
</short>
<full>
<date>02.01.2010</date>
<title color="0xB0490A" font="Myriad Pro" font_size="18">TITLE 2</title>
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
<button caption="READ MORE" link="empty.html" target="_self" margin_top="5" />
</full>
</news>
<news>
<short>
<date>03.01.2010</date>
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
</short>
<full>
<date>03.01.2010</date>
<title color="0xB0490A" font="Myriad Pro" font_size="18">TITLE 3</title>
<img src="media/image.jpg" width="285" height="200" video="media/video.flv" />
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
</full>
</news>
<news>
<short>
<date>04.01.2010</date>
<img src="media/image.jpg" width="70" height="50" />
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
</short>
<full>
<date>04.01.2010</date>
<title color="0xB0490A" font="Myriad Pro" font_size="18">TITLE 4</title>
<img src="media/image.jpg" width="150" height="95" audio="media/audio.mp3" />
<caption color="0x707070" font="Tahoma" font_size="11">Caption line 1</caption>
</full>
</news>
</component>
In this example you can see 4 news items. Each news item has short part and full part. Code of short part is shown when "Short" mode is activated. And code of full part is shown when "Full" mode is activated. For example let's take first news. In Short part you can see date line, title and caption (text) line. In Full part you can see also date line, title, captions (text) lines and media line, in this news item media is a picture. Second, third and forth news are almost the same, they just differ in the number of captions and in the third there is a video file as media and a button. In the forth an audio file as media are used. <component>Description <news>Description Optional attributes
<short>Description <full>Description <date>Description <title>Description Attributes
<img>Description Attributes
Following attributes are used only in full description of the news in <full> tag:
<caption>Description Attributes
<button>Description Attributes
|