flash design effectiveness, web usability
and accessibility to search engines.
Multipage menu control
One of the most frequently asked questions is how to edit one page item and have it update sitewide. There are a lot of different solutions. You can use server-side programming and databases, dreamweaver templates with repeating regions, dreamweaver library items, SSI (Server Side Include) , the XML feature of our menus.
If you are not familiar with server-side programming languages, such as PHP, Perl etc., use one of the following ways:
- Ajax menu - best way,
- Server Side Include (SSI) - good way,
- XML - easiest way,
- DW template or library item - good way if you are accustomed to it,
- Frames or iframe - not recommended.
Server Side Include (SSI)
SSI is a simple server-side scripting language. As its name implies, its primary use is including the contents of one file into another one dynamically.
For example, a file containing a menu code could be included into multiple SSI-enabled pages throughout a website by placing the following code into the desired pages:
<!--#include file="menu.html" -->Important! Ask your hosting provider if the SSI feature is enabled for your website.
Wikipedia Server Side Includes
Examples of using SSI:
http://flashmenus.net/example/ssi/index.shtml - SHTML page
http://flashmenus.net/example/ssi/index.html - HTML page
http://flashmenus.net/example/ssi/index.php - PHP page
http://flashmenus.net/example/ssi/newfolder/ - Different folders example
All pages mentioned above include the same file http://flashmenus.net/example/ssi/menu.html
Keep navigation settings in one XML file
With the new user interface it's very easy. Just set "Save as XML" in the UI => Navigation tab => Save => as XML in file.
New XML file "navigation.xml" will be created. It will be placed in the menu folder.
Read detailed instructions here
How to create a library item
Create a single Library item with navigation and then reuse it on each page. When you need to make an edit, itís simply a matter of opening the Library item, making the edit and letting Dreamweaver replicate that edit across all the pages containing the Library item.
1. Create new "Dreamweaver site" (or open existing site).
- - Open "Files panel" (F8 or Window -> Files),
- - Select in Site pop-up menu "Manage sites",
- - The Manage Sites dialog box appears. Press "New",
- - Create new site.
2. Create new Library item.
- - Open "Assets panel" (F11 or Window -> Assets)
- - By default, the "Images category" is selected. Select the last category - "Library"
- - Click the New Library item button at the bottom of the Library category.
- - Type a name for the new library item.
3. Insert the menu in the Library item.
- - Double click to open the Library item, Dreamweaver opens a new window for editing the library item. This window is much like a Document window, but its Design view has a gray background to indicate that youíre editing a library item instead of a document.
- - Click menu button on your Insert bar (Flash elements section) to insert f-source menu (for example "Mac Style Menu")
- - Save the flash element in the Library folder (type new name "menu.swf")
- - Save the script 'ActiveContent3_2.js' in the Library folder,
(to get the script download it here http://flashmenus.net/support/ActiveContent3_2.js)
- - Test the Library item in browser (F12), if it not working, check the script path and SWF path.
4. Use the Library item.
- - Drag a library item from the Assets panel to the Document window,
- - When you edit a library item, you can update all documents that use that item. If you choose not to update, the documents remain associated with the library item; you can update them later.
Thus, you will have in the Library folder these files:
In the menuLibrary.lbi correct path to the SWF file must looks like :
<param name="movie" value="menu.swf" /> ..... <embed src="menu.swf" ......In the test.html correct path to the SWF file will looks like :
<param name="movie" value="Library/menu.swf" /> ..... <embed src="Library/menu.swf" ......Here is example of HTML code inside of the Library item:
<script src='ActiveContent3_2.js'></script> <div id='menu'> <div><a href='http://flashmenus.net'>Button1</a></div> <div id='submenu'> <div><a href='http://flashmenus.net'>SubButton1-1</a></div> <div><a href='http://flashmenus.net'>SubButton1-2</a></div> <div><a href='http://flashmenus.net'>SubButton1-3</a></div> </div> <div><a href='http://flashmenus.net'>Button2</a></div> ......... </div> <div id="flashmenus.net menu" style="position:absolute; left:0px; top:10px; width:100%; height:45px; z-index:99999;"> <object classid="............