Inserting a drop-down list
A navigation drop- down list is a menu of links to other Web pages in a Web site. You can insert a drop-down menu into a Web page by dragging the drop-down object from the Palette view.
- Create a Web project.
- Create a Web site structure.
- Create or import Web resources.
- Create a Web page template (optional).
Note: If you use a Web page template to govern the layout and visual design of all of the pages in a Web site, you can insert a navigation drop-down list onto the page template, rather than adding the navigation to every page individually. The links in the navigation drop-down list are then updated dynamically for each individual page in the site.
To insert a drop-down list into a Web page, do the following:
- Double-click a page icon in Web Site Navigation to open the Design page in Page Designer.
- Select the
Web Site Navigation drawer in the Palette view and drag the
Drop-Down List object onto the page; an insert window opens.
- Select whether you want to use a
Sample drop-down list or a
User-defined drop-down list. If you want to use a sample drop-down list select one of the
Thumbnail images and the
File name field is populated. If you have a user-defined drop-down list, you can click Browse to locate the file in the in the
Current project or
Import the file from the file system. Select your user-defined drop-down list and the
File name field is populated. Click Next.
- Select the type of links that you want to appear in the drop-down list. You can select links based on page relationships. For example you can select links based on parent-child relationships or you can select links based on sequence (previous and next pages). If you select previous or next links, you can supply a label to appear for those links, such as Back and Forward. You can select from the following types of links:
- Top page
- Children of top page
- Ancestor page
- Parent page
- Sibling pages
- Current page
- First child page
- Children pages
- Previous page
- Next page
- Level
- Group
- If the Web page or page template to which you are adding the navigation is a JSP or Faces JSP page, click Next. On the Optional Settings for Specification File page of the wizard, select the
HTML Navigation or
JSP Navigationnavigation type that you want to use.
- Click Finish. A navigation icon () is inserted on the page or template to indicate that a navigation component exists.
- Press CTRL+S to save your changes. The drop-down list is inserted on the page.
Related concepts
Related tasks