![]() |
|
Dreamweaver Extensions
|
Working with XML contentOpen the menu.xml file in Dreamweaver (File -> Open), to change the content of your menu. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Advanced Vertical Menu). 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"?>
<navigation>
<menu title="ROOT-MENU 01">
<item caption="Caption 1" link="empty.html" target="_self" />
<item caption="Caption 2" link="empty.html" target="_self">
<menu title="SUB-MENU 01">
<item type="img" src="photos/photo01.png" width="75" height="50" link="empty.html" target="_self" />
<item type="text" caption="Short text" />
<item type="link" caption="Link caption 1" link="empty.html" target="_self" />
<item type="link" caption="Link caption 2" link="empty.html" target="_self" />
<item type="separator"/>
<item type="link" caption="Link caption 3" link="empty.html" target="_self" />
</menu>
</item>
<item caption="Caption 3" link="empty.html" target="_self" />
The structure of menu consists of two root-menu sections. First root-menu section consists of 3 root items. Where second root menu has its own sub-menu section. Sub-menu section has six items: the first is a picture (it has source for picture, width and height), the second is a simple text and it hasn’t any links, the third and the forth are hyperlinks, the fifths is a separator and the sixth is a hyperlink. Second root-menu section consists of four items (root-menu has its own individual color and margin). The first and the second are root items. The third and the forth are hyperlinks (third item has additional attribute like margin). <navigation>Description <menu>Description The following attributes are optional for tag <menu>.
<item>Description Attributes
Note: If you create menu with a complex structure, use attributes margin_top and margin_bottom to justify elements of the menu. |