Configure CSS Menu Wizard

The CSS Menu Wizard creates a CSS menu that has its items entered manually (not retrieved from a database) in the wizard interface. Use this command when you are not creating large menus or when you are simply not using any database.

Note: Non database-driven menus are sometimes referred as "static" menus (because their items information is entered manually).

You can apply the wizard in both .html pages and server model-based pages (.php, .asp, .cfm). No prerequisite content is required in page (meaning that the page can be empty when you apply this wizard). If later on you want to edit the static menu you created, use the corresponding Property Inspector panel added by the wizard.

 

The CSS Menu Wizard is accessible from the InterAKT tab of the Insert bar (or InterAKT menu item from the Insert menu):

 

The CSS Menu Wizard interface has three steps.

 

To set the interface options for the first step of the wizard, follow the instructions below:

 

  1. In the Layout drop-down menu select one of the four available menu layouts.

  2. In the Skin drop-down menu select the CSS skin to be applied to the menu.
    Note:
    There are 23 available skins in MX CSS Menus. Click here to see all the provided skins and how they suit your menus.

  3. The image below the two drop-down menus offers a quick preview of the menu about to be generated with the selected layout and the selected skin.

  4. The buttons in the lower part of the interface (they appear on all steps of the wizard) offer the next functionalities:

  5. Click Next to continue with configuring the wizard.

 

To set the interface options for the second step of the wizard, follow the instructions below:

  1. In the For first level drop-down menu decide if to use text/labels or images for the first menu level (the menu "labels" are part of the image).
    Note:
    To see a concrete example of using images for the first level, click here.

  2. When you launch the wizard, the Items grid is empty and the four interface controls below it are disabled - they become enabled once you add menu items in the grid.

  3. Notice the seven buttons above the Items grid. Use them to perform the following operations:


                              

  4. If you are using text for the first menu level, the Label text box below the grid is displayed for each menu item, no matter the level. Use this text box to edit the label (previously entered in the Add Menu Item dialog box) for the currently selected menu item in the grid:


                              

  5. If you are using images for the first menu level, the Image text box below the grid is displayed for menu items on the first level (when they are selected in the grid). Use this text box and the Browse button next to it to edit the site-relative path for the corresponding image (previously selected in the Select item image dialog box). For items on other levels, the Label text box is displayed.


                              

  6. In the URL text box specify the URL link to which the menu item points (when selected in browser). These links can be site-relative (use the Browse button to select the file from the site structure, and pass URL parameters if necessary) or external. The site external links should be completely given (including the protocol part: "http://", "ftp://" etc.).
    The default value is #. It means that the current menu item, when clicked, does not point to any page.

  7. In the Tooltip text box specify the tooltip (alternative text) displayed when the mouse pointer hovers the current menu item (in browser).

  8. In the Target editable drop-down menu select the target window for the page opened when a menu item is selected. The fact that this drop-down menu is editable is useful for the site developers who use frames: enter here the name of the frames container.
    The five available options are:

  9. Click Next to continue with configuring the wizard.

 

To set the interface options for the third (and last) step of the wizard, follow the instructions below:

  1. The Sub-items animation drop-down menu is enabled only when you set the Vertical or the Horizontal layout in the first wizard step:


                              
    It gives you the possibility to select one of the provided sub-items animations, or to leave the default None option if you don't want any animation. The available animation types are:

  2. Check the Menu absolute position option if you want the menu position to be an absolute one (and not a relative one to the other page elements).

  3. Leave the Highlight current item option checked if you want the currently selected menu item to be highlighted.

  4. If in the first wizard step you selected the Tab layout, another checkbox will be displayed in the third step interface, namely the Persistent tab one:


                              
    Check this option if you want the second level items (in the Tab layout) to still be displayed when the mouse pointer leaves the menu area.

  5. The Hover image filename text box is only enabled when you are using images for the first menu level. When the mouse pointer hovers a menu item from the first level, the corresponding image changes. Name all these image files according to the same pattern (starting from the initial image name): UniqueName_HoverCommonEnding.extension.
    Specify the filename pattern (common ending) for these images in the Hover image filename text box: _HoverCommonEnding. The default value is _hover.

  6. The Highlight image filename text box is only enabled when you are using images for the first menu level. When a menu item from the first level is selected, the corresponding image changes. Name all these image files according to the same pattern (starting from the initial image name): UniqueName_SelectedCommonEnding.extension.
    Specify the filename pattern (common ending) for these images in the Highlight image filename text box: _SelectedCommonEnding. The default value is _selected.

    Note:
    To better understand the role of these two text boxes, check out the How to use images for the first menu level tutorial.

 

After clicking Finish, you will notice in the Dreamweaver page the translator (illustration corresponding to the code block behind the action) added in Design view by the CSS Menu Wizard.  The translator shows the first level menu items positioned corresponding to the selected layout.

The translator differs according to the option selected in the For first level drop-down menu:

 

 

The CSS Menu Wizard does not add anything in the Server Behaviors tab of the Application panel.

After generating the CSS menu, notice in the \includes\cssmenus2\skins site folder a folder named as the selected skin. It contains an images directory and four .css files, one for each of the four possible layouts.

To see how the page looks in browser after saving and uploading it to the server, click here.

 

Note: When creating an expandable menu with one of the two wizards, two links are generated in page above the menu, allowing you to show/hide all the items on the second level at once:

 

To see the Hide All | Show All links in action in browser, click here (the darko skin is used in this case).